Browse Source

Fix build breaks

pull/298/head
V2Ray 9 years ago
parent
commit
fe2146c5b3
  1. 4
      net/sockshandler.go
  2. 2
      net/vmesshandler.go

4
net/sockshandler.go

@ -15,7 +15,7 @@ func (server *SocksServer) Listen(port uint8) error {
return err
}
server.accepting = true
go server.AcceptConns(listener)
go server.AcceptConnections(listener)
return nil
}
@ -30,6 +30,6 @@ func (server *SocksServer) AcceptConnections(listener net.Listener) error {
return nil
}
func (server *SocksServer) HandleConnection(connection *net.Conn) error {
func (server *SocksServer) HandleConnection(connection net.Conn) error {
return nil
}

2
net/vmesshandler.go

@ -8,7 +8,7 @@ type VMessHandler struct {
}
func (*VMessHandler) Listen(port uint8) error {
listener, err := net.Listen("tcp", ":"+string(port))
_, err := net.Listen("tcp", ":"+string(port))
if err != nil {
return err
}

Loading…
Cancel
Save