drop SockAddr from public API

and fix UDP search source
This commit is contained in:
Michael Davidsaver
2020-03-09 17:49:06 -07:00
parent ff3c0e4da4
commit 64cf5c2334
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -204,7 +204,8 @@ void ServerConn::handle_SEARCH()
from_wire(M, nchan);
server::Source::Search op;
op._src = peerAddr;
strncpy(op._src, peerName.c_str(), sizeof(op._src)-1);
op._src[sizeof(op._src)-1] = '\0';
std::vector<std::pair<uint32_t, std::string>> nameStorage(nchan);
op._names.resize(nchan);