From d978f062047976b9aa3f81f32b4c7a21bb6874db Mon Sep 17 00:00:00 2001 From: wimpunk Date: Sun, 3 Dec 2006 10:38:29 +0000 Subject: [PATCH] Applied cisco_fw.diff: Use configured hostname for firewall access with -use=cisco (closes: #345712). Thanks to Per Carlson for the patch! See http://bugs.debian.org/345712. git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@38 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- svn/ddclient | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svn/ddclient b/svn/ddclient index facfa26..8cd9168 100755 --- a/svn/ddclient +++ b/svn/ddclient @@ -1820,7 +1820,7 @@ sub get_ip { # Protect special HTML characters (like '?') $queryif =~ s/([\?&= ])/sprintf("%%%02x",ord($1))/ge; - $url = "http://${arg}/level/1/exec/show/ip/interface/brief/${queryif}/CR"; + $url = "http://".opt('fw')."/level/1/exec/show/ip/interface/brief/${queryif}/CR"; $reply = geturl('', $url, opt('fw-login'), opt('fw-password')) || ''; $arg = $url;