Compare commits

...

3 Commits

Author SHA1 Message Date
7b6e39088d feat(cli,run): use 127.0.0.1 as default host value if empty
All checks were successful
arcad/edge/pipeline/head This commit looks good
2023-04-20 14:17:03 +02:00
9944a37670 chore: cache modd tool
All checks were successful
arcad/edge/pipeline/head This commit looks good
2023-04-20 13:57:46 +02:00
78307b6850 feat(cli,app): filter out ipv6 adresses for url resolving 2023-04-20 13:57:46 +02:00
2 changed files with 16 additions and 4 deletions

View File

@ -15,8 +15,8 @@ SHELL := bash
build: build-edge-cli build-client-sdk-test-app
watch:
go run -mod=readonly github.com/cortesi/modd/cmd/modd@latest
watch: tools/modd/bin/modd
tools/modd/bin/modd
.PHONY: test
test: test-go
@ -102,3 +102,7 @@ tools/yq/bin/yq:
mkdir -p tools/yq/bin
curl -L --output tools/yq/bin/yq https://github.com/mikefarah/yq/releases/download/v4.31.1/yq_linux_amd64
chmod +x tools/yq/bin/yq
tools/modd/bin/modd:
mkdir -p tools/modd/bin
GOBIN=$(PWD)/tools/modd/bin go install -mod=readonly github.com/cortesi/modd/cmd/modd@latest

View File

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