rename InboundConfig methods

This commit is contained in:
v2ray
2016-01-25 17:23:10 +01:00
parent d325400f2e
commit d4dcee5fa3
8 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func NewInboundDetourHandlerAlways(space app.Space, config *InboundDetourConfig)
handler.ich = make([]*InboundConnectionHandlerWithPort, 0, ports.To-ports.From+1)
for i := ports.From; i <= ports.To; i++ {
ichConfig := config.Settings
ich, err := proxyrepo.CreateInboundConnectionHandler(config.Protocol, space, ichConfig)
ich, err := proxyrepo.CreateInboundHandler(config.Protocol, space, ichConfig)
if err != nil {
log.Error("Failed to create inbound connection handler: ", err)
return nil, err
+1 -1
View File
@@ -33,7 +33,7 @@ func NewInboundDetourHandlerDynamic(space app.Space, config *InboundDetourConfig
ichArray := make([]*InboundConnectionHandlerWithPort, ichCount*2)
for idx, _ := range ichArray {
//port := handler.pickUnusedPort()
ich, err := proxyrepo.CreateInboundConnectionHandler(config.Protocol, space, config.Settings)
ich, err := proxyrepo.CreateInboundHandler(config.Protocol, space, config.Settings)
if err != nil {
log.Error("Point: Failed to create inbound connection handler: ", err)
return nil, err
+2 -2
View File
@@ -57,7 +57,7 @@ func NewPoint(pConfig *Config) (*Point, error) {
vpoint.space.Bind(vpoint)
ichConfig := pConfig.InboundConfig.Settings
ich, err := proxyrepo.CreateInboundConnectionHandler(pConfig.InboundConfig.Protocol, vpoint.space.ForContext("vpoint-default-inbound"), ichConfig)
ich, err := proxyrepo.CreateInboundHandler(pConfig.InboundConfig.Protocol, vpoint.space.ForContext("vpoint-default-inbound"), ichConfig)
if err != nil {
log.Error("Failed to create inbound connection handler: ", err)
return nil, err
@@ -65,7 +65,7 @@ func NewPoint(pConfig *Config) (*Point, error) {
vpoint.ich = ich
ochConfig := pConfig.OutboundConfig.Settings
och, err := proxyrepo.CreateOutboundConnectionHandler(pConfig.OutboundConfig.Protocol, vpoint.space.ForContext("vpoint-default-outbound"), ochConfig)
och, err := proxyrepo.CreateOutboundHandler(pConfig.OutboundConfig.Protocol, vpoint.space.ForContext("vpoint-default-outbound"), ochConfig)
if err != nil {
log.Error("Failed to create outbound connection handler: ", err)
return nil, err