main: allow loading configuration files (--config-file)

This commit is contained in:
Peter Cai
2017-08-21 14:47:06 +08:00
parent f8e268769c
commit 968d35178a
2 changed files with 72 additions and 0 deletions

16
config.example Normal file
View File

@@ -0,0 +1,16 @@
# Basically this file is the equivalent to splitting the command line options into multiple lines
# Each line should contain an option
# This is client
-c
# Or use -s if you use it on server side
# Define local address
-l 127.0.0.1:56789
# Define remote address
-r 45.66.77.88:45678
# Password
-k my_awesome_password
# Mode
--raw-mode faketcp
# Log Level
--log-level 4