From 3bb2d8fd96618c11f499c8dddb97a62015b1ea53 Mon Sep 17 00:00:00 2001 From: cbdev Date: Sat, 8 Jun 2019 11:25:19 +0200 Subject: Implement configuration file parsing --- README.md | 19 +++++++-- config.c | 110 +++++++++++++++++++++++++++++++++++++++++------- plugins/backend_file.md | 33 +++++++++++++++ websocksy.c | 9 ++-- websocksy.cfg | 11 +++++ 5 files changed, 160 insertions(+), 22 deletions(-) create mode 100644 plugins/backend_file.md create mode 100644 websocksy.cfg diff --git a/README.md b/README.md index 10a2f73..11cbfc1 100644 --- a/README.md +++ b/README.md @@ -74,14 +74,27 @@ The listen port may either be exposed to incoming WebSocket clients directly or ### Command line arguments -* `-p `: Set the listen port for incoming WebSocket connections -* `-l `: Set the host for listening for incoming WebSocket connections +* `-p `: Set the listen port for incoming WebSocket connections (Default: `8001`) +* `-l `: Set the host for listening for incoming WebSocket connections (Default: `::`) * `-b `: Select external backend * `-c