diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-09-01 11:16:45 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-09-02 00:32:22 +0300 |
commit | e5790d4a853d52a1087fa5cfa23d75eb78f69067 (patch) | |
tree | e95c1805e3fafd9b702814f3486efe5990642dbe /etc/nextcloudpi-config.d/nc-forward-ports.sh | |
parent | a695c1669383d9ab8d02488177c1a6739c8a889c (diff) |
fix IP regexv0.24.18
Diffstat (limited to 'etc/nextcloudpi-config.d/nc-forward-ports.sh')
-rw-r--r-- | etc/nextcloudpi-config.d/nc-forward-ports.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/nc-forward-ports.sh b/etc/nextcloudpi-config.d/nc-forward-ports.sh index f8342a1f..5f1fdfc6 100644 --- a/etc/nextcloudpi-config.d/nc-forward-ports.sh +++ b/etc/nextcloudpi-config.d/nc-forward-ports.sh @@ -40,7 +40,7 @@ install() configure() { local IFACE=$( ip r | grep "default via" | awk '{ print $5 }' ) - local IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(.\d{1,3}){3}' | head -1 ) + local IP=$( ip a | grep "global $IFACE" | grep -oP '\d{1,3}(\.\d{1,3}){3}' | head -1 ) upnpc -d "$HTTPSPORT_" TCP upnpc -d "$HTTPPORT_" TCP upnpc -a "$IP" 443 "$HTTPSPORT_" TCP |