Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rearrange dyndnsCheckIP() call

  • Loading branch information...
commit ac1ff8bcde5054c6e29aed4f322006480aad8c5c 1 parent 30b32e7
@bcyrill authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 usr/local/www/services_dyndns.php
View
4 usr/local/www/services_dyndns.php
@@ -1,7 +1,7 @@
<?php
/* $Id$ */
/*
- Copyright (C) 2008 Ermal Luçi
+ Copyright (C) 2008 Ermal Lu�i
All rights reserved.
Redistribution and use in source and binary forms, with or without
@@ -166,8 +166,8 @@ function dyndnsCheckIP($int) {
<td class="listr">
<?php
$filename = "{$g['conf_path']}/dyndns_{$iface}{$dyndns['type']}" . escapeshellarg($dyndns['host']) . "{$dyndns['id']}.cache";
- $ipaddr = dyndnsCheckIP($iface);
if (file_exists($filename)) {
+ $ipaddr = dyndnsCheckIP($iface);
$cached_ip_s = explode(":", file_get_contents($filename));
$cached_ip = $cached_ip_s[0];
if ($ipaddr <> $cached_ip)
Please sign in to comment.
Something went wrong with that request. Please try again.