Browse Source

fix log printing with ipv6 urls (part of #6)

pull/31/head
aler9 5 years ago
parent
commit
02beefcec9
  1. 5
      server-client.go

5
server-client.go

@ -160,8 +160,9 @@ func (c *serverClient) close() error {
} }
func (c *serverClient) log(format string, args ...interface{}) { func (c *serverClient) log(format string, args ...interface{}) {
format = "[RTSP client " + c.conn.NetConn().RemoteAddr().String() + "] " + format // keep remote address outside format, since it can contain %
log.Printf(format, args...) log.Println("[RTSP client " + c.conn.NetConn().RemoteAddr().String() + "] " +
fmt.Sprintf(format, args...))
} }
func (c *serverClient) run() { func (c *serverClient) run() {

Loading…
Cancel
Save