InboundHandler.Proxy()

This commit is contained in:
Darien Raymond
2017-01-15 00:57:06 +01:00
parent 34a2ae0ab7
commit f2b1d5b60c
6 changed files with 42 additions and 6 deletions
+10
View File
@@ -59,6 +59,16 @@ func NewServer(ctx context.Context, config *ServerConfig) (*Server, error) {
return s, nil
}
func (v *Server) Network() net.NetworkList {
list := net.NetworkList{
Network: []net.Network{net.Network_TCP},
}
if v.config.UdpEnabled {
list.Network = append(list.Network, net.Network_UDP)
}
return list
}
// Port implements InboundHandler.Port().
func (v *Server) Port() net.Port {
return v.meta.Port