[fix] auto-route for android

This commit is contained in:
adlyq
2022-04-20 22:00:05 +08:00
parent f40c2eb71d
commit 4b79f8de93
6 changed files with 34 additions and 16 deletions

View File

@ -875,7 +875,7 @@ func parseAuthentication(rawRecords []string) []auth.AuthUser {
func parseTun(rawTun RawTun, general *General) (*Tun, error) {
if rawTun.Enable && rawTun.AutoDetectInterface {
autoDetectInterfaceName, err := commons.GetAutoDetectInterface()
if err != nil || autoDetectInterfaceName == "" {
if err != nil {
log.Warnln("Can not find auto detect interface.[%s]", err)
} else {
log.Warnln("Auto detect interface: %s", autoDetectInterfaceName)