refactor: new way to get interface for android

This commit is contained in:
adlyq
2022-05-15 23:02:34 +08:00
parent efc7c82cac
commit 0b4c498c93
7 changed files with 36 additions and 20 deletions

View File

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