--- embedaddon/miniupnpc/external-ip.sh 2012/02/21 23:16:22 1.1.1.1 +++ embedaddon/miniupnpc/external-ip.sh 2023/09/27 11:21:37 1.1.1.2 @@ -1,4 +1,4 @@ #!/bin/sh -# $Id: external-ip.sh,v 1.1.1.1 2012/02/21 23:16:22 misho Exp $ +# $Id: external-ip.sh,v 1.1.1.2 2023/09/27 11:21:37 misho Exp $ # (c) 2010 Reuben Hawkins -upnpc -s | grep ExternalIPAddress | sed 's/[^0-9\.]//g' +upnpc -s | sed -n -e 's/^ExternalIPAddress = \([0-9.]*\)$/\1/p'