Skip to content

Commit 6c0d748

Browse files
committed
open browser on startup
1 parent c6a89e2 commit 6c0d748

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

backend/cmd/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ import (
5353
"github.com/google/gopacket/pcap"
5454
"github.com/jmaralo/sntp"
5555
"github.com/pelletier/go-toml/v2"
56+
"github.com/pkg/browser"
5657
trace "github.com/rs/zerolog/log"
5758
)
5859

@@ -324,6 +325,9 @@ func main() {
324325
}()
325326
}
326327

328+
browser.OpenURL("http://" + config.Server["ethernet-view"].Addr)
329+
browser.OpenURL("http://" + config.Server["control-station"].Addr)
330+
327331
interrupt := make(chan os.Signal, 1)
328332
signal.Notify(interrupt, os.Interrupt)
329333

0 commit comments

Comments
 (0)