demo file protocal

This commit is contained in:
gaoshuaixing
2023-06-29 16:29:05 +08:00
parent b1715343ed
commit 26640b22a0

View File

@@ -131,7 +131,7 @@ class OsController extends Controller {
if (Ps.isProd()) {
const mainServer = Conf.getValue('mainServer');
if (Conf.isFileProtocol(mainServer)) {
addr = path.join(Ps.getHomeDir(), mainServer.indexPath);
addr = mainServer.protocol + path.join(Ps.getHomeDir(), mainServer.indexPath);
} else {
addr = mainServer.protocol + mainServer.host + ':' + mainServer.port;
}