Skip to content
Snippets Groups Projects
Commit c83446d5 authored by cyberta's avatar cyberta Committed by cyberta
Browse files

set running state only after the local listener at the port for the local...

set running state only after the local listener at the port for the local openvpn connection has been established, fixes state handling in case the port to listen on is already bound
parent 47e43d49
Branches
Tags
1 merge request!79state handling improvements
......@@ -205,13 +205,13 @@ func (c *Client) Start() (_ bool, err error) {
}
c.obfs4Conns = []Obfs4Conn{*obfs4Conn}
c.updateState(running)
c.openvpnConn, err = c.createOpenvpnConnection()
if err != nil {
return false, err
}
c.updateState(running)
if c.hopEnabled {
go c.hop()
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment