feat(cli,run): use 127.0.0.1 as default host value if empty
arcad/edge/pipeline/head This commit looks good Details

This commit is contained in:
wpetit 2023-04-20 14:17:03 +02:00
parent 9944a37670
commit 7b6e39088d
1 changed files with 4 additions and 0 deletions

View File

@ -379,6 +379,10 @@ func findMatchingDeviceAddress(ctx context.Context, from string, defaultAddr str
} }
func newAppRepository(host string, basePort uint64, manifests ...*app.Manifest) *appModuleMemory.Repository { func newAppRepository(host string, basePort uint64, manifests ...*app.Manifest) *appModuleMemory.Repository {
if host == "" {
host = "127.0.0.1"
}
return appModuleMemory.NewRepository( return appModuleMemory.NewRepository(
func(ctx context.Context, id app.ID, from string) (string, error) { func(ctx context.Context, id app.ID, from string) (string, error) {
appIndex := 0 appIndex := 0