mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-11-09 06:35:22 +00:00
Update udprelay.c
This commit is contained in:
+1
-1
@@ -316,7 +316,7 @@ parse_udprelay_header(const char *buf, const size_t buf_len,
|
||||
}
|
||||
|
||||
if (port != NULL) {
|
||||
sprintf(port, "%d", load16_be(buf + offset));
|
||||
sprintf(port, "%d", ntohs(*(uint16_t*)(buf + offset)));
|
||||
}
|
||||
offset += 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user