Update networktool.php
This commit is contained in:
parent
00e5681bca
commit
a73d7594cb
|
|
@ -118,15 +118,8 @@ if(!function_exists("get_network_outbound_addr")) {
|
||||||
// via opendns.com
|
// via opendns.com
|
||||||
if(!$addr && loadHelper("exectool")) {
|
if(!$addr && loadHelper("exectool")) {
|
||||||
$cmd = "dig +short myip.opendns.com @resolver1.opendns.com";
|
$cmd = "dig +short myip.opendns.com @resolver1.opendns.com";
|
||||||
$fw = write_stroage_file(exec_command($cmd, "shell_exec"), array(
|
$addr = exec_command($cmd, "shell_exec", array(
|
||||||
"storage_type" => "cache",
|
"cache" => true
|
||||||
"filename" => get_hashed_text($cmd, array(
|
|
||||||
"salt" => true,
|
|
||||||
"2p" => true
|
|
||||||
))
|
|
||||||
));
|
|
||||||
$addr = read_storage_file($fw, array(
|
|
||||||
"storage_type" => "cache"
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user