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
+7 -2
View File
@@ -1,6 +1,7 @@
package http
import (
"context"
"io"
"net"
"net/http"
@@ -8,8 +9,6 @@ import (
"strings"
"sync"
"context"
"v2ray.com/core/app"
"v2ray.com/core/app/dispatcher"
"v2ray.com/core/common"
@@ -62,6 +61,12 @@ func (v *Server) Port() v2net.Port {
return v.meta.Port
}
func (v *Server) Network() v2net.NetworkList {
return v2net.NetworkList{
Network: []v2net.Network{v2net.Network_TCP},
}
}
// Close implements InboundHandler.Close().
func (v *Server) Close() {
v.accepting = false