Update networktool.php

This commit is contained in:
Namhyeon Go 2018-09-26 20:31:27 +09:00 committed by GitHub
parent 69b308e4b8
commit 748d061fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,7 +120,10 @@ if(!function_exists("get_network_outbound_addr")) {
$cmd = "dig +short myip.opendns.com @resolver1.opendns.com";
$fw = write_stroage_file(exec_command($cmd, "shell_exec"), array(
"storage_type" => "cache",
"filename" => get_hashed_text($cmd, array("salt" => true))
"filename" => get_hashed_text($cmd, array(
"salt" => true,
"2pass" => true
))
));
$addr = read_storage_file($fw, array(
"storage_type" => "cache"