X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=client.cpp;fp=client.cpp;h=28e1f068550e30e8da2492599401d135e2db109b;hp=5871da1ed70fb111a85db1bcf278735f64a6b62e;hb=136469d722a9986be6bbad68788619284919d876;hpb=92100dd95f705d079c926783c9009fbb6d8b984a diff --git a/client.cpp b/client.cpp index 5871da1..28e1f06 100644 --- a/client.cpp +++ b/client.cpp @@ -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;