mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-14 11:20:53 +08:00
Fixed: IPv6 is not properly processed
This commit is contained in:
@@ -72,6 +72,14 @@ class Helper
|
||||
return $str;
|
||||
}
|
||||
|
||||
public static function wrapIPv6($addr) {
|
||||
if (filter_var($addr, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
|
||||
return "[$addr]";
|
||||
} else {
|
||||
return $addr;
|
||||
}
|
||||
}
|
||||
|
||||
public static function multiPasswordVerify($algo, $salt, $password, $hash)
|
||||
{
|
||||
switch($algo) {
|
||||
|
||||
Reference in New Issue
Block a user