diff --git a/shadowsocks/asyncdns.py b/shadowsocks/asyncdns.py index 18222a6..0721986 100644 --- a/shadowsocks/asyncdns.py +++ b/shadowsocks/asyncdns.py @@ -413,7 +413,7 @@ class DNSResolver(object): def _send_req(self, hostname, qtype): self._request_id += 1 - if self._request_id > 32768: + if self._request_id > 65536: self._request_id = 1 req = build_request(hostname, qtype, self._request_id) for server in self._servers: