Fix: server log website addr miss https

pull/3/head
zijiren233 1 year ago
parent fd8d0b078e
commit 2f44e7bdeb

@ -101,10 +101,14 @@ func Server(cmd *cobra.Command, args []string) {
if conf.Conf.Rtmp.Enable {
log.Infof("rtmp run on tcp://%s:%d", tcpServerAddr.IP, tcpRtmpAddr.Port)
}
if conf.Conf.Server.Quic && conf.Conf.Server.CertPath != "" && conf.Conf.Server.KeyPath != "" {
log.Infof("quic run on udp://%s:%d", udpServerAddr.IP, udpServerAddr.Port)
if conf.Conf.Server.CertPath != "" && conf.Conf.Server.KeyPath != "" {
if conf.Conf.Server.Quic {
log.Infof("quic run on udp://%s:%d", udpServerAddr.IP, udpServerAddr.Port)
}
log.Infof("website run on https://%s:%d", tcpServerAddr.IP, tcpServerAddr.Port)
} else {
log.Infof("website run on http://%s:%d", tcpServerAddr.IP, tcpServerAddr.Port)
}
log.Infof("website run on http://%s:%d", tcpServerAddr.IP, tcpServerAddr.Port)
bootstrap.WaitCbk()
}

Loading…
Cancel
Save