Fix: get general should return correct result (#1172)
This commit is contained in:
parent
b25009cde7
commit
b6ee47a541
2 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,7 @@ type General struct {
|
||||||
Mode T.TunnelMode `json:"mode"`
|
Mode T.TunnelMode `json:"mode"`
|
||||||
LogLevel log.LogLevel `json:"log-level"`
|
LogLevel log.LogLevel `json:"log-level"`
|
||||||
IPv6 bool `json:"ipv6"`
|
IPv6 bool `json:"ipv6"`
|
||||||
Interface string `json:"interface-name"`
|
Interface string `json:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Inbound
|
// Inbound
|
||||||
|
|
|
@ -94,6 +94,7 @@ func GetGeneral() *config.General {
|
||||||
},
|
},
|
||||||
Mode: tunnel.Mode(),
|
Mode: tunnel.Mode(),
|
||||||
LogLevel: log.Level(),
|
LogLevel: log.Level(),
|
||||||
|
IPv6: !resolver.DisableIPv6,
|
||||||
}
|
}
|
||||||
|
|
||||||
return general
|
return general
|
||||||
|
|
Loading…
Reference in a new issue