mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-01-05 17:13:32 +08:00
Fix: get general should return correct result (#1172)
This commit is contained in:
parent
b25009cde7
commit
b6ee47a541
@ -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
|
||||
|
@ -94,6 +94,7 @@ func GetGeneral() *config.General {
|
||||
},
|
||||
Mode: tunnel.Mode(),
|
||||
LogLevel: log.Level(),
|
||||
IPv6: !resolver.DisableIPv6,
|
||||
}
|
||||
|
||||
return general
|
||||
|
Loading…
x
Reference in New Issue
Block a user