]> Cypherpunks.ru repositories - govpn.git/blobdiff - src/cypherpunks.ru/govpn/client/proxy.go
Copyright and stylistic changes
[govpn.git] / src / cypherpunks.ru / govpn / client / proxy.go
index 9ee1208d9bac3fee97af5cb7b283d9059362f1a3..31d7897711ccc9b9a96ad3ff70b6ea449b72ce4e 100644 (file)
@@ -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)
 }