aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-05-09 14:39:04 +0200
committerHarald Eilertsen <haraldei@anduin.net>2019-05-09 14:39:04 +0200
commit5731358d3c1a4603d10be84557542d48dcc068a1 (patch)
treefb78c3d6002d15f6af1e950de8fbbe06d492fc05 /README.md
parentc1b10fdcf6c3e63238818c79ea25dab5b69658e0 (diff)
downloadphisher-5731358d3c1a4603d10be84557542d48dcc068a1.tar.gz
phisher-5731358d3c1a4603d10be84557542d48dcc068a1.tar.bz2
phisher-5731358d3c1a4603d10be84557542d48dcc068a1.zip
Handle client disconnects more gracefully.
Give the client an option to disconnect politely by issuing the `bye` command, but also handle the case where the client just drops the connection in a better way.
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index db4cc40..29d1652 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,9 @@ You can check if an URL is phishy or not by connecting to the socket and passing
one URL at the time to the socket. For each URL the server will respond if it's
phishy or good.
+Once the client is done, it can drop the connection gracefully by issuing the `bye`
+command, or simply drop the connection.
+
An example session can be like this:
% socat - UNIX-CONNECT:/tmp/phisher
@@ -35,6 +38,8 @@ An example session can be like this:
good url.
https://safravideos.com/login
it's a phish!
+ bye
+ bye.
## How to contribute