Now it is a time to start to make a handshake

This commit is contained in:
9seconds
2018-07-02 16:28:20 +03:00
parent 9f746aa699
commit 6db04980ff
4 changed files with 14 additions and 9 deletions
+2 -2
View File
@@ -28,8 +28,8 @@ type RPCProxyRequest struct {
RemoteIPPort [rpcProxyRequestIPPortLength]byte
LocalIPPort [rpcProxyRequestIPPortLength]byte
ADTag []byte
Extras Extras
Message *bytes.Buffer
Extras *mtproto.Extras
}
func (r *RPCProxyRequest) Bytes() []byte {
@@ -65,7 +65,7 @@ func (r *RPCProxyRequest) Bytes() []byte {
return buf.Bytes()
}
func NewRPCProxyRequest(connectionType mtproto.ConnectionType, local, remote *net.TCPAddr, adTag []byte, extras *mtproto.Extras) (*RPCProxyRequest, error) {
func NewRPCProxyRequest(connectionType mtproto.ConnectionType, local, remote *net.TCPAddr, adTag []byte, extras Extras) (*RPCProxyRequest, error) {
flags := RPCProxyRequestFlagsHasAdTag | RPCProxyRequestFlagsMagic | RPCProxyRequestFlagsExtMode2
switch connectionType {