From 2f9478399ef488519a2c8f294d77ad0265e2427d Mon Sep 17 00:00:00 2001 From: Juhani Haverinen Date: Wed, 4 Jan 2017 10:27:59 +0200 Subject: [PATCH] Update README to be more up to date --- README | 3 ++- gophersrv.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README b/README index f1ce9a4..43de289 100644 --- a/README +++ b/README @@ -1,5 +1,6 @@ +!!! Don't use this, it's bad and doesn't implement gopher protocol correctly !!! It serves gopher, duh. Modify lines 37 and 38 to configure. Will automatically attempt to execute anything with execute bit (except directories). -Requires Python 2, as Python 3's string handling it just weird. +Requires Python 2, as the code is bad. Also responds to HTTP queries. diff --git a/gophersrv.py b/gophersrv.py index 303c9cd..c4df952 100644 --- a/gophersrv.py +++ b/gophersrv.py @@ -35,9 +35,9 @@ import threading import time # Config -port = 7070 +port = 7777 gopherroot = os.environ['HOME']+'/gopher' -blacklistfile = os.environ['HOME']+'/gopher_blacklist' +blacklistfile = os.environ['HOME']+'/gopher_blacklist_1' # Set up socket sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)