💾 Archived View for bbs.geminispace.org › u › skyjake › 14640 captured on 2024-02-05 at 10:43:07. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Re: "How do I use gophers:// on Lagrange?"
Unfortunately that is not supported in Lagrange.
Feb 03 · 2 days ago
Is that gopher with tls?
🚀 zorg [OP] · Feb 04 at 00:08:
@MrSVCD Yes. Here's an example gophers server:
@MrSVCD Yes. Here's an example gophers server:
---------------------------------- FILE: s8 ------------------------------------------ #!/bin/bash #To use, name this file s8 and make it executable with chmod +x s8, then type: ncat --ssl -l -k -p 7000 -c "./s8" #You can connect to it with: ncat --ssl localhost 7000 #or by using curl --insecure gophers://localhost:7000/ if your curl supports gophers. Use --insecure because it's a self-signed certificate. read userInput userInput=$(echo "$userInput" | tr -d '[:space:]') if [ "${userInput:0:1}" == "/" ]; then userInput="${userInput:1}" fi if [ "$userInput" == "file1.txt" ]; then echo "This is file1.txt" elif [ "$userInput" == "file2.txt" ]; then echo "This is file2.txt" else echo -e "iMain menu 0 0 0\r\n" echo -e "0File1 file1.txt localhost 7000\r\n" echo -e "0File2 file2.txt localhost 7000\r\n" echo . fi ---------------------------------- END FILE ------------------------------------------ ---------------------------------- FILE: disclaimers.txt ----------------------------- THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ---------------------------------- END FILE ------------------------------------------
How do I use gophers:// on Lagrange?