Skip to content

Instantly share code, notes, and snippets.

@hnw
Created January 4, 2016 03:43
Show Gist options
  • Save hnw/3e2b08d934ce3d85ff73 to your computer and use it in GitHub Desktop.
Save hnw/3e2b08d934ce3d85ff73 to your computer and use it in GitHub Desktop.
diff -c -r ddclient-3.8.3-orig/ddclient ddclient-3.8.3/ddclient
*** ddclient-3.8.3-orig/ddclient 2015-05-30 09:37:38.000000000 +0000
--- ddclient-3.8.3/ddclient 2016-01-03 17:04:30.943687063 +0000
***************
*** 35,41 ****
$program =~ s/d$//;
my $now = time;
my $hostname = hostname();
! my $etc = ($program =~ /test/i) ? './' : '/etc/ddclient/';
my $cachedir = ($program =~ /test/i) ? './' : '/var/cache/ddclient/';
my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
my $msgs = '';
--- 35,41 ----
$program =~ s/d$//;
my $now = time;
my $hostname = hostname();
! my $etc = ($program =~ /test/i) ? './' : '/etc/';
my $cachedir = ($program =~ /test/i) ? './' : '/var/cache/ddclient/';
my $savedir = ($program =~ /test/i) ? 'URL/' : '/tmp/';
my $msgs = '';
***************
*** 94,99 ****
--- 94,104 ----
'url' => '/status.HTM',
'skip' => 'WAN IP',
},
+ 'smc-barricade-alt' => {
+ 'name' => 'SMC Barricade FW (alternate config)',
+ 'url' => '/status.HTM',
+ 'skip' => 'WAN IP',
+ },
'smc-barricade-7401bra' => {
'name' => 'SMC Barricade 7401BRA FW',
'url' => '/admin/wan1.htm',
***************
*** 388,394 ****
'atime' => setv(T_NUMBER, 0, 1, 0, 0, undef),
'status' => setv(T_ANY, 0, 1, 0, '', undef),
'min-interval' => setv(T_DELAY, 0, 0, 1, interval('30s'), 0),
! 'max-interval' => setv(T_DELAY, 0, 0, 1, interval('25d'), 0),
'min-error-interval' => setv(T_DELAY, 0, 0, 1, interval('5m'), 0),
'warned-min-interval' => setv(T_ANY, 0, 1, 0, 0, undef),
--- 393,399 ----
'atime' => setv(T_NUMBER, 0, 1, 0, 0, undef),
'status' => setv(T_ANY, 0, 1, 0, '', undef),
'min-interval' => setv(T_DELAY, 0, 0, 1, interval('30s'), 0),
! 'max-interval' => setv(T_DELAY, 0, 0, 1, interval('30d'), 0),
'min-error-interval' => setv(T_DELAY, 0, 0, 1, interval('5m'), 0),
'warned-min-interval' => setv(T_ANY, 0, 1, 0, 0, undef),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment