[wiki] [sites] for inetd solution, use unix socket rather than a tcp socket || Josuah Demangeon

From: <git_AT_suckless.org>
Date: Mon, 12 Feb 2018 01:03:35 +0100

commit 2fcbe64b5d3dcd121eacc209b79659e90b3263c4
Author: Josuah Demangeon <mail_AT_josuah.net>
Date: Mon Feb 12 01:02:25 2018 +0100

    for inetd solution, use unix socket rather than a tcp socket

diff --git a/tools.suckless.org/ii/usage.md b/tools.suckless.org/ii/usage.md
index 0d3fc132..603002d0 100644
--- a/tools.suckless.org/ii/usage.md
+++ b/tools.suckless.org/ii/usage.md
_AT_@ -72,14 +72,10 @@ In `/etc/stunnel/stunnel.conf`:
 [inetd](http://man.openbsd.org/inetd) listens on multiple TCP ports and can connect a program standard input and output to a TCP socket.
 This enables it to act as a simple proxy using any command line TLS client, such as [openssl s_client](http://man.openbsd.org/openssl#S_CLIENT), [brssl client](https://bearssl.org/gitweb/?p=BearSSL;a=blob;f=tools/brssl.c;h=91372b09f42149a503f9d13db0b78cf0a123611e;hb=HEAD#l43), nc -ssl, socat... or any other:
 
-In `/etc/services`:
-
- irc-oftc <your port>/tcp
-
 In `/etc/inetd.conf`:
 
- irc-oftc stream tcp nowait nobody /usr/bin/openssl openssl s_client -quiet -connect irc.oftc.net:6697
+ /tmp/irc.oftc.net stream unix nowait nobody /usr/bin/openssl openssl s_client -quiet -connect irc.oftc.net:6697
 
-Then a proxy should be available at localhost:<your port> for ii to connect to:
+Then a proxy should be available as an unix socket for ii to connect to:
 
- ii -s 127.0.0.1 -p <your port>
+ ii -s irc.oftc.net -u /tmp/irc.oftc.net
Received on Mon Feb 12 2018 - 01:03:35 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 12 2018 - 01:12:23 CET