get vpn url

This commit is contained in:
2024-09-09 11:09:43 +00:00
parent ed1008397d
commit 816145ec04
2 changed files with 17 additions and 0 deletions

View File

@@ -137,6 +137,14 @@ function redis_remove($key) {
}
}
function get_vpn_url($domain,$passkey) {
$date = gmdate("Ymd");
$hash = hash("sha256",$passkey*$date);
$url = $domain."/".$passkey."/secret";
return $url;
}
// not in use
function put_install_envs() {