Commit b2cb2b8b authored by topjohnwu's avatar topjohnwu

Reduce socket name length

Some detectors simply ban long abstract sockets
parent d19f65ce
......@@ -24,7 +24,7 @@ static void patch_socket_name(const char *path) {
mmap_rw(path, buf, size);
for (int i = 0; i < size; ++i) {
if (memcmp(buf + i, MAIN_SOCKET, sizeof(MAIN_SOCKET)) == 0) {
gen_rand_str(buf + i, sizeof(MAIN_SOCKET));
gen_rand_str(buf + i, 16);
i += sizeof(MAIN_SOCKET);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment