Skip to content
Snippets Groups Projects
Commit 968ac7f5 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] `--autoconf` could prefer localhost to local network interface

parent bc355c9f
Branches
Tags
No related merge requests found
...@@ -296,13 +296,13 @@ function getBestLocal(family:string) { ...@@ -296,13 +296,13 @@ function getBestLocal(family:string) {
} }
} }
const interfacePriorityRegCatcher = [ const interfacePriorityRegCatcher = [
/^tun\d/, /^tun\d+/,
/^enp\ds\d/, /^enp\d+s\d+/,
/^enp\ds\df\d/, /^enp\d+s\d+f\d+/,
/^eth\d/, /^eth\d+/,
/^Ethernet/, /^Ethernet/,
/^wlp\ds\d/, /^wlp\d+s\d+/,
/^wlan\d/, /^wlan\d+/,
/^Wi-Fi/, /^Wi-Fi/,
/^lo/, /^lo/,
/^Loopback/, /^Loopback/,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment