]> git.sesse.net Git - cubemap/blobdiff - client.cpp
Log all finished accesses to an access log.
[cubemap] / client.cpp
index 5871da1ed70fb111a85db1bcf278735f64a6b62e..28e1f068550e30e8da2492599401d135e2db109b 100644 (file)
@@ -92,7 +92,11 @@ ClientProto Client::serialize() const
 ClientStats Client::get_stats() const
 {
        ClientStats stats;
-       stats.stream_id = stream_id;
+       if (stream_id.empty()) {
+               stats.stream_id = "-";
+       } else {
+               stats.stream_id = stream_id;
+       }
        stats.sock = sock;
        stats.fwmark = fwmark;
        stats.remote_addr = remote_addr;