Propagate client addr with connection options

This commit is contained in:
9seconds
2018-07-02 16:14:11 +03:00
parent 09476cc467
commit 9f746aa699
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -2,6 +2,7 @@ package mtproto
import (
"bytes"
"net"
"github.com/juju/errors"
)
@@ -18,6 +19,7 @@ type ConnectionOpts struct {
DC int16
ConnectionType ConnectionType
ConnectionProto ConnectionProtocol
ClientAddr *net.TCPAddr
}
// Different connection types which user requests from Telegram.