From 78307b6850efe31d1638dc2f2c136bd32d5aaa19 Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 20 Apr 2023 13:57:09 +0200 Subject: [PATCH] feat(cli,app): filter out ipv6 adresses for url resolving --- cmd/cli/command/app/run.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/cli/command/app/run.go b/cmd/cli/command/app/run.go index 571c156..667fc51 100644 --- a/cmd/cli/command/app/run.go +++ b/cmd/cli/command/app/run.go @@ -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 } }