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