]> Cypherpunks.ru repositories - govpn.git/commit
Upgrade Client
authorBruno Clermont <bruno@robotinfra.com>
Wed, 8 Feb 2017 10:39:19 +0000 (18:39 +0800)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 15 Feb 2017 06:46:23 +0000 (09:46 +0300)
commitb46602d3396ec3beb4a66002dfc8dafd87f541c8
tree47fb224649cba5f34ef9aa8e1d6a04a300a25371
parent1872444c2bc15cd9af8b8819080165159f688800
Upgrade Client

- wrap errors
- switch to logrus
- add Android support: allow connection with file descriptor
- move `govpn/client.Protocol` to `govpn.Protocol`
- improve usage as a library: switch from Up/Down as executed script to Go function
- add `PreUp` step
- allow metrics to be consumed by library user
- use a generic channel to stop client
- log failure to close resources
- close TAP when not used anymore
src/cypherpunks.ru/govpn/action.go [new file with mode: 0644]
src/cypherpunks.ru/govpn/client/client.go
src/cypherpunks.ru/govpn/client/proxy.go
src/cypherpunks.ru/govpn/client/tcp.go
src/cypherpunks.ru/govpn/client/udp.go
src/cypherpunks.ru/govpn/cmd/govpn-client/main.go
src/cypherpunks.ru/govpn/common.go
src/cypherpunks.ru/govpn/conf.go