mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-10-26 18:21:07 +08:00
修订代码;将addr的赋值从各个proxy自己的方法中提出来
This commit is contained in:
@@ -65,8 +65,7 @@ func (_ ServerCreator) NewServer(lc *proxy.ListenConf) (proxy.Server, error) {
|
||||
return nil, e
|
||||
}
|
||||
s := &Server{
|
||||
ProxyCommonStruct: proxy.ProxyCommonStruct{Addr: lc.GetAddr()}, //监听地址,不要与TargetAddr混淆
|
||||
targetAddr: ta,
|
||||
targetAddr: ta,
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user