Skip to content

Commit 3f11105

Browse files
Add warning about missing IPv6 relay address in verbose mode
1 parent 629ee21 commit 3f11105

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cli.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ func configFromCLI() (config *Config, logger *Logger, err error) {
407407

408408
if config.RelayIPv6 == nil && config.RelayIPv4 == nil {
409409
return config, logger, fmt.Errorf("no relay IP configured: %s and %s", errIPv4, errIPv6) //nolint:errorlint
410+
} else if errIPv6 != nil && config.Verbose {
411+
logger.Errorf("Warning: could not auto-detect relay IPv6 address: %v", err)
410412
}
411413

412414
config.LocalIPv6, err = getLinkLocalIPv6Address(config.Interface)

0 commit comments

Comments
 (0)