Skip to content

Commit

Permalink
qzeleza#194 внешним подключением может быть eth2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
AltGrF13 authored and AltGrF13 committed Nov 17, 2024
1 parent b3cef32 commit b039ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opt/bin/libs/main
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ is_ip_private() {
get_external_interface() {
local interfaces=$( /opt/sbin/ip a )

for interface in eth3 eth2.2 ppp0 ppp1 ; do
for interface in eth3 eth2.4 eth2.2 ppp0 ppp1 ; do
local interface_address=$( echo "$interfaces" | grep "global ${interface}" | tr -s ' ' | cut -d ' ' -f 3 )
if [ -z "${interface_address}" ]; then
continue
Expand Down

0 comments on commit b039ccf

Please # to comment.