X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgovpn%2Fclient%2Fproxy.go;h=31d7897711ccc9b9a96ad3ff70b6ea449b72ce4e;hb=6f7f0571f11f3d370b38c6de681e4b1389ba3e53;hp=9ee1208d9bac3fee97af5cb7b283d9059362f1a3;hpb=b46602d3396ec3beb4a66002dfc8dafd87f541c8;p=govpn.git diff --git a/src/cypherpunks.ru/govpn/client/proxy.go b/src/cypherpunks.ru/govpn/client/proxy.go index 9ee1208..31d7897 100644 --- a/src/cypherpunks.ru/govpn/client/proxy.go +++ b/src/cypherpunks.ru/govpn/client/proxy.go @@ -63,9 +63,16 @@ func (c *Client) proxyTCP() { } if resp.StatusCode != http.StatusOK { govpn.CloseLog(conn, c.logger, c.LogFields()) - c.Error <- errors.Errorf("Unexpected response from proxy: %s", http.StatusText(resp.StatusCode)) + c.Error <- errors.Errorf( + "Unexpected response from proxy: %s", + http.StatusText(resp.StatusCode), + ) return } - c.logger.WithField("func", logFuncPrefix+"Client.proxyTCP").WithFields(c.config.LogFields()).Debug("Proxy connected") + c.logger.WithField( + "func", logFuncPrefix+"Client.proxyTCP", + ).WithFields( + c.config.LogFields(), + ).Debug("Proxy connected") go c.handleTCP(conn) }