mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-03 15:23:37 -07:00
apply go1.19 gofmt
This commit is contained in:
+1
-1
@@ -203,7 +203,7 @@ func parseProxyLineV2(line []byte) (ip net.IP, err error) {
|
||||
return ip, nil
|
||||
}
|
||||
|
||||
/// WrappedConn is a net.Conn with some additional data stapled to it;
|
||||
// / WrappedConn is a net.Conn with some additional data stapled to it;
|
||||
// the proxied IP, if one was read via the PROXY protocol, and the listener
|
||||
// configuration.
|
||||
type WrappedConn struct {
|
||||
|
||||
+5
-2
@@ -22,9 +22,12 @@ type MessagePair struct {
|
||||
// SplitMessage represents a message that's been split for sending.
|
||||
// Two possibilities:
|
||||
// (a) Standard message that can be relayed on a single 512-byte line
|
||||
// (MessagePair contains the message, Split == nil)
|
||||
//
|
||||
// (MessagePair contains the message, Split == nil)
|
||||
//
|
||||
// (b) multiline message that was split on the client side
|
||||
// (Message == "", Split contains the split lines)
|
||||
//
|
||||
// (Message == "", Split contains the split lines)
|
||||
type SplitMessage struct {
|
||||
Message string
|
||||
Msgid string
|
||||
|
||||
Reference in New Issue
Block a user