udp ota bug
This commit is contained in:
parent
2d40a361db
commit
ee391c7773
1 changed files with 3 additions and 3 deletions
|
@ -69,8 +69,8 @@ import errno
|
||||||
import random
|
import random
|
||||||
|
|
||||||
from shadowsocks import encrypt, eventloop, lru_cache, common, shell
|
from shadowsocks import encrypt, eventloop, lru_cache, common, shell
|
||||||
from shadowsocks.common import parse_header, pack_addr, onetimeauth_verify, onetimeauth_gen, \
|
from shadowsocks.common import parse_header, pack_addr, onetimeauth_verify, \
|
||||||
ONETIMEAUTH_BYTES, ONETIMEAUTH_CHUNK_BYTES, ONETIMEAUTH_CHUNK_DATA_LEN, ADDRTYPE_AUTH
|
onetimeauth_gen, ONETIMEAUTH_BYTES, ADDRTYPE_AUTH
|
||||||
|
|
||||||
|
|
||||||
BUF_SIZE = 65536
|
BUF_SIZE = 65536
|
||||||
|
@ -220,7 +220,7 @@ class UDPRelay(object):
|
||||||
if self._is_local:
|
if self._is_local:
|
||||||
# spec https://shadowsocks.org/en/spec/one-time-auth.html
|
# spec https://shadowsocks.org/en/spec/one-time-auth.html
|
||||||
if self._one_time_auth_enable:
|
if self._one_time_auth_enable:
|
||||||
data = _one_time_auth_chunk_data_gen(data)
|
data = self._one_time_auth_chunk_data_gen(data)
|
||||||
data = encrypt.encrypt_all(self._password, self._method, 1, data)
|
data = encrypt.encrypt_all(self._password, self._method, 1, data)
|
||||||
if not data:
|
if not data:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue