fix: remove unneed listener's start
This commit is contained in:
parent
a0a2eb2106
commit
8c58d8a8ad
1 changed files with 2 additions and 2 deletions
|
@ -267,7 +267,7 @@ func ReCreateShadowSocks(shadowSocksConfig string, tcpIn chan<- C.ConnContext, u
|
||||||
var ssConfig LC.ShadowsocksServer
|
var ssConfig LC.ShadowsocksServer
|
||||||
if addr, cipher, password, err := embedSS.ParseSSURL(shadowSocksConfig); err == nil {
|
if addr, cipher, password, err := embedSS.ParseSSURL(shadowSocksConfig); err == nil {
|
||||||
ssConfig = LC.ShadowsocksServer{
|
ssConfig = LC.ShadowsocksServer{
|
||||||
Enable: true,
|
Enable: len(shadowSocksConfig) > 0,
|
||||||
Listen: addr,
|
Listen: addr,
|
||||||
Password: password,
|
Password: password,
|
||||||
Cipher: cipher,
|
Cipher: cipher,
|
||||||
|
@ -320,7 +320,7 @@ func ReCreateVmess(vmessConfig string, tcpIn chan<- C.ConnContext, udpIn chan<-
|
||||||
var vsConfig LC.VmessServer
|
var vsConfig LC.VmessServer
|
||||||
if addr, username, password, err := sing_vmess.ParseVmessURL(vmessConfig); err == nil {
|
if addr, username, password, err := sing_vmess.ParseVmessURL(vmessConfig); err == nil {
|
||||||
vsConfig = LC.VmessServer{
|
vsConfig = LC.VmessServer{
|
||||||
Enable: true,
|
Enable: len(vmessConfig) > 0,
|
||||||
Listen: addr,
|
Listen: addr,
|
||||||
Users: []LC.VmessUser{{Username: username, UUID: password, AlterID: 1}},
|
Users: []LC.VmessUser{{Username: username, UUID: password, AlterID: 1}},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue