feat(cli,run): resolve app url based on available network interfaces

This commit is contained in:
2023-04-06 11:52:04 +02:00
parent 050e529f0a
commit 32c6f0a77e
3 changed files with 80 additions and 7 deletions

View File

@ -96,7 +96,9 @@ function getApp(ctx, params) {
function getAppUrl(ctx, params) {
var appId = params.appId;
return app.getUrl(ctx, appId);
var from = params.from;
return app.getUrl(ctx, appId, from ? from : '');
}
function onClientFetch(ctx, url, remoteAddr) {