mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update
This commit is contained in:
parent
79f53f2836
commit
42607a789d
@ -43,9 +43,9 @@ class ServerService
|
|||||||
$json->inboundDetour[0]->port = (int)$localPort;
|
$json->inboundDetour[0]->port = (int)$localPort;
|
||||||
$json->inbound->port = (int)$server->server_port;
|
$json->inbound->port = (int)$server->server_port;
|
||||||
$json->inbound->streamSettings->network = $server->network;
|
$json->inbound->streamSettings->network = $server->network;
|
||||||
$json = $this->setNetwork($server, $json);
|
$this->setNetwork($server, $json);
|
||||||
$json = $this->setRule($server, $json);
|
$this->setRule($server, $json);
|
||||||
$json = $this->setTls($server, $json);
|
$this->setTls($server, $json);
|
||||||
|
|
||||||
return $json;
|
return $json;
|
||||||
}
|
}
|
||||||
@ -81,7 +81,6 @@ class ServerService
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $json;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setRule(Server $server, object $json)
|
private function setRule(Server $server, object $json)
|
||||||
@ -105,7 +104,6 @@ class ServerService
|
|||||||
array_push($json->routing->rules, $protocolObj);
|
array_push($json->routing->rules, $protocolObj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $json;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private function setTls(Server $server, object $json)
|
private function setTls(Server $server, object $json)
|
||||||
@ -126,6 +124,5 @@ class ServerService
|
|||||||
}
|
}
|
||||||
$json->inbound->streamSettings->tlsSettings->certificates[0] = $tls;
|
$json->inbound->streamSettings->tlsSettings->certificates[0] = $tls;
|
||||||
}
|
}
|
||||||
return $json;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user