diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-08-07 16:57:46 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2014-08-07 16:57:46 +0800 |
commit | c384801cbb89d2ceb61aba2ace8b61f30bc3a920 (patch) | |
tree | 0e120a6d90afaeb684d9f3018c76d55208d2bdb3 | |
parent | 1e6dd75a652eb3d89c1ca4c3504106de9ce3d201 (diff) | |
download | pttbbs-c384801cbb89d2ceb61aba2ace8b61f30bc3a920.tar.gz pttbbs-c384801cbb89d2ceb61aba2ace8b61f30bc3a920.tar.zst pttbbs-c384801cbb89d2ceb61aba2ace8b61f30bc3a920.zip |
Add code to parse comments.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@6036 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-x | pttbbs/daemon/postd/postd.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pttbbs/daemon/postd/postd.py b/pttbbs/daemon/postd/postd.py index 9bfd7264..34692925 100755 --- a/pttbbs/daemon/postd/postd.py +++ b/pttbbs/daemon/postd/postd.py @@ -14,7 +14,6 @@ import gevent.server import leveldb from pyutil import pttstruct -from pyutil import big5 # Ref: ../../include/daemons.h RequestFormatString = 'HH' @@ -25,7 +24,7 @@ PostKey = collections.namedtuple('PostKey', 'board file') AddRecordFormatString = 'III%ds' % (pttstruct.IDLEN + 1) AddRecord = collections.namedtuple('AddRecord', 'userref ctime ipv4 userid') REQ_ADD = 1 -_SERVER_ADDR = '127.0.0.1' +_SERVER_ADDR = '0.0.0.0' #'127.0.0.1' _SERVER_PORT = 5135 _DB_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'db_posts.db') |