}(srv)
}
+ slogger.Info("Hotline server started",
+ "version", version,
+ "API port", fmt.Sprintf("%s:%v", *netInterface, *basePort),
+ "Transfer port", fmt.Sprintf("%s:%v", *netInterface, *basePort+1),
+ )
+
// Serve Hotline requests until program exit
log.Fatal(srv.ListenAndServe(ctx, cancel))
}
}
func (s *Server) ListenAndServe(ctx context.Context, cancelRoot context.CancelFunc) error {
- s.Logger.Info("Hotline server started",
- "version", VERSION,
- "API port", fmt.Sprintf("%s:%v", s.NetInterface, s.Port),
- "Transfer port", fmt.Sprintf("%s:%v", s.NetInterface, s.Port+1),
- )
-
var wg sync.WaitGroup
wg.Add(1)
+++ /dev/null
-package hotline
-
-const VERSION = "0.12.3"