X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=client.cpp;h=28e1f068550e30e8da2492599401d135e2db109b;hb=f67fda5486a09098c75691c1ac1fcdc033903f59;hp=bb2d26cdcd4abec4516d23ae92142636a33ac341;hpb=8cc780cf37063ce29f13380976a54dd8302fe3a9;p=cubemap diff --git a/client.cpp b/client.cpp index bb2d26c..28e1f06 100644 --- a/client.cpp +++ b/client.cpp @@ -67,6 +67,7 @@ Client::Client(const ClientProto &serialized, Stream *stream) if (fwmark != 0) { log_perror("setsockopt(SO_MARK)"); } + fwmark = 0; } } @@ -91,7 +92,13 @@ 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; stats.connect_time = connect_time; stats.bytes_sent = bytes_sent;