Fix: Shadowsocks nameserver when DOT=off

This commit is contained in:
Quentin McGaw
2020-06-13 13:57:26 +00:00
parent 8cae369186
commit bdcadf09ec
4 changed files with 26 additions and 17 deletions

View File

@@ -260,10 +260,15 @@ func _main(background context.Context, args []string) int {
}
if allSettings.ShadowSocks.Enabled {
nameserver := ""
if allSettings.DNS.Enabled {
nameserver = "127.0.0.1"
}
err = shadowsocksConf.MakeConf(
allSettings.ShadowSocks.Port,
allSettings.ShadowSocks.Password,
allSettings.ShadowSocks.Method,
nameserver,
allSettings.System.UID,
allSettings.System.GID)
fatalOnError(err)