Fix: get general should return correct result (#1172)

This commit is contained in:
Fndroid 2021-01-07 13:59:39 +08:00 committed by GitHub
parent b25009cde7
commit b6ee47a541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -30,7 +30,7 @@ type General struct {
Mode T.TunnelMode `json:"mode"`
LogLevel log.LogLevel `json:"log-level"`
IPv6 bool `json:"ipv6"`
Interface string `json:"interface-name"`
Interface string `json:"-"`
}
// Inbound

View file

@ -94,6 +94,7 @@ func GetGeneral() *config.General {
},
Mode: tunnel.Mode(),
LogLevel: log.Level(),
IPv6: !resolver.DisableIPv6,
}
return general