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
This commit is contained in:
wimpunk 2006-12-03 10:38:29 +00:00
parent 33dad60c7a
commit d978f06204

View file

@ -1820,7 +1820,7 @@ sub get_ip {
# Protect special HTML characters (like '?') # Protect special HTML characters (like '?')
$queryif =~ s/([\?&= ])/sprintf("%%%02x",ord($1))/ge; $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')) || ''; $reply = geturl('', $url, opt('fw-login'), opt('fw-password')) || '';
$arg = $url; $arg = $url;