Skip to content

Commit 1899d73

Browse files
committed
feat(dns): Adding another source for network
Signed-off-by: Vincent Boutour <[email protected]>
1 parent 8b1c12c commit 1899d73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/network

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dns_set() {
4646
return
4747
fi
4848

49-
for interface in "Wi-Fi" "USB 10/100/1000 LAN" "Thunderbolt Ethernet Slot 1"; do
49+
for interface in "Wi-Fi" "USB 10/100/1000 LAN" "Thunderbolt Ethernet Slot 0" "Thunderbolt Ethernet Slot 1"; do
5050
if [[ $(sudo networksetup -listnetworkserviceorder | grep -c -i "${interface}") -gt 0 ]]; then
5151
sudo networksetup -setdnsservers "${interface}" "${1}"
5252
sudo networksetup -setsearchdomains "${interface}" "local"

0 commit comments

Comments
 (0)