fix(client): update default bootstrap URL to include /relay
The default bootstrap endpoint was changed from "ws://127.0.0.1:4017" to "ws://127.0.0.1:4017/relay" to align with the expected relay path, ensuring consistent behavior with the provided example.
lemon-mint committed
Oct 28, 2025 at 12:16 UTC
907ced30d26a7746fd3cec4e11891f0123574146
1 file changed
+1
-1
cmd/client/main.go
+1
-1
@@ -29,7 +29,7 @@ var rootCmd = &cobra.Command{
29
30
func init() {
31
flags := rootCmd.PersistentFlags()
32
- flags.StringArrayVar(&flagBootstraps, "bootstrap", []string{"ws://127.0.0.1:4017"}, "bootstrap websocket url (repeatable), e.g. ws://127.0.0.1:4017/relay")
32
+ flags.StringArrayVar(&flagBootstraps, "bootstrap", []string{"ws://127.0.0.1:4017/relay"}, "bootstrap websocket url (repeatable), e.g. ws://127.0.0.1:4017/relay")
33
flags.StringVar(&flagName, "name", "demo", "lease name to display on server UI")
34
flags.StringArrayVar(&flagALPNs, "alpn", []string{"h1"}, "ALPN identifier for this service")
35
flags.IntVar(&flagAdminPort, "admin-port", 0, "optional admin UI port (0 to disable)")