Skip to content

Commit

Permalink
Fix: get general should return correct result (#1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fndroid authored Jan 7, 2021
1 parent b25009c commit b6ee47a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions hub/executor/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func GetGeneral() *config.General {
},
Mode: tunnel.Mode(),
LogLevel: log.Level(),
IPv6: !resolver.DisableIPv6,
}

return general
Expand Down

0 comments on commit b6ee47a

Please sign in to comment.