Browse Source

Merge pull request #368 from etmatrix/master

ddns-script: With DSL connection ifconfig hasn't broadcast address but P-t-P
lilik-openwrt-22.03
sbyx 10 years ago
parent
commit
aa8878dc15
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh

+ 1
- 1
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_functions.sh View File

@ -589,7 +589,7 @@ get_local_ip () {
interface ) interface )
if [ $use_ipv6 -eq 0 ]; then if [ $use_ipv6 -eq 0 ]; then
__IP=$(ifconfig $ip_interface | awk ' __IP=$(ifconfig $ip_interface | awk '
/Bcast.*Mask/ { # Filter IPv4
/inet addr:/ { # Filter IPv4
# inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 # inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
$1=""; # remove inet $1=""; # remove inet
$3=""; # remove Bcast: ... $3=""; # remove Bcast: ...


Loading…
Cancel
Save