From 968ac7f55c4cccc07dca8a66d8ae691aed795aab Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Tue, 8 Aug 2017 18:16:58 +0200 Subject: [PATCH] [fix] `--autoconf` could prefer localhost to local network interface --- app/modules/bma/lib/network.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/modules/bma/lib/network.ts b/app/modules/bma/lib/network.ts index 03e2a7863..1c936f086 100644 --- a/app/modules/bma/lib/network.ts +++ b/app/modules/bma/lib/network.ts @@ -296,13 +296,13 @@ function getBestLocal(family:string) { } } const interfacePriorityRegCatcher = [ - /^tun\d/, - /^enp\ds\d/, - /^enp\ds\df\d/, - /^eth\d/, + /^tun\d+/, + /^enp\d+s\d+/, + /^enp\d+s\d+f\d+/, + /^eth\d+/, /^Ethernet/, - /^wlp\ds\d/, - /^wlan\d/, + /^wlp\d+s\d+/, + /^wlan\d+/, /^Wi-Fi/, /^lo/, /^Loopback/, -- GitLab