m-team支持ipv4/ipv6自定义配置

This commit is contained in:
iyuu.cn
2019-12-25 18:29:30 +08:00
parent 11aa804dbb
commit 5e73c41fcb
5 changed files with 37 additions and 6 deletions

View File

@@ -86,6 +86,12 @@ class Rpc
{
if(self::$workingMode === 1 && empty(self::$links)){
foreach ( self::$clients as $k => $v ){
// 跳过未配置的客户端
if (empty($v['username']) || empty( $v['password'])) {
unset(self::$clients[$k]);
echo "clients_".$k." 用户名或密码未配置,已跳过 \n\n";
continue;
}
try
{
switch($v['type']){