feat: setup addr arg

This commit is contained in:
tux
2025-02-27 22:17:13 +05:30
parent e64319616f
commit b5756cf429
4 changed files with 21 additions and 18 deletions

View File

@ -11,9 +11,9 @@ import (
"github.com/rs/zerolog/log"
)
func Start(port uint16) {
func Start(addr string) {
var trok Trok
if err := trok.Init(port); err != nil {
if err := trok.Init(addr); err != nil {
log.Fatal().Msgf("failed to init trok %v", err)
}