File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ func serveCmd() *serpent.Command {
84
84
// Ensure we always print the auth key on stdout
85
85
if isatty .IsTerminal (os .Stdout .Fd ()) {
86
86
hlog ("Your auth key is:" )
87
- fmt .Println ("\t >" , cliui .Code (r .ClientAuth ().AuthKey ()))
87
+ fmt .Println (" >" , cliui .Code (r .ClientAuth ().AuthKey ()))
88
88
hlog ("Use this key to authenticate other " + cliui .Code ("wush" ) + " commands to this instance." )
89
89
hlog ("Visit the following link to connect via the browser:" )
90
- fmt .Println ("\t >" , cliui .Code ("https://wush.dev#" + r .ClientAuth ().AuthKey ()))
90
+ fmt .Println (" >" , cliui .Code ("https://wush.dev#" + r .ClientAuth ().AuthKey ()))
91
91
} else {
92
92
fmt .Println (cliui .Code (r .ClientAuth ().AuthKey ()))
93
93
hlog ("The auth key has been printed to stdout" )
@@ -105,7 +105,10 @@ func serveCmd() *serpent.Command {
105
105
return err
106
106
}
107
107
108
- ts .Up (ctx )
108
+ _ , err = ts .Up (ctx )
109
+ if err != nil {
110
+ return fmt .Errorf ("bring wireguard up: %w" , err )
111
+ }
109
112
fs := afero .NewOsFs ()
110
113
111
114
// hlog("WireGuard is ready")
You can’t perform that action at this time.
0 commit comments