mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-15 21:38:08 +00:00
Support local servers on custom ports, Ref. #303
This commit is contained in:
@ -56,6 +56,14 @@ exports.stopAllLocalServers = async () => {
|
||||
|
||||
function getServerArguments(server, overrides) {
|
||||
let serverArguments = [];
|
||||
if(server.host) {
|
||||
serverArguments.push('--host');
|
||||
serverArguments.push(server.host);
|
||||
}
|
||||
if(server.port) {
|
||||
serverArguments.push('--port');
|
||||
serverArguments.push(server.port);
|
||||
}
|
||||
return serverArguments;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user