Skip to content

Commit

Permalink
udp ota bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mengskysama committed Jan 11, 2016
1 parent 2d40a36 commit ee391c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shadowsocks/udprelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@
import random

from shadowsocks import encrypt, eventloop, lru_cache, common, shell
from shadowsocks.common import parse_header, pack_addr, onetimeauth_verify, onetimeauth_gen, \
ONETIMEAUTH_BYTES, ONETIMEAUTH_CHUNK_BYTES, ONETIMEAUTH_CHUNK_DATA_LEN, ADDRTYPE_AUTH
from shadowsocks.common import parse_header, pack_addr, onetimeauth_verify, \
onetimeauth_gen, ONETIMEAUTH_BYTES, ADDRTYPE_AUTH


BUF_SIZE = 65536
Expand Down Expand Up @@ -220,7 +220,7 @@ def _handle_server(self):
if self._is_local:
# spec https://shadowsocks.org/en/spec/one-time-auth.html
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)
if not data:
return
Expand Down

0 comments on commit ee391c7

Please sign in to comment.