Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dmsgweb handle multiple tcp connections correctly #270

Merged
merged 24 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 67 additions & 19 deletions cmd/dmsgweb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,79 @@


```
$ go run cmd/dmsgweb/dmsgweb.go --help

┌┬┐┌┬┐┌─┐┌─┐┬ ┬┌─┐┌┐
│││││└─┐│ ┬│││├┤ ├┴┐
─┴┘┴ ┴└─┘└─┘└┴┘└─┘└─┘
DMSG resolving proxy & browser client - access websites over dmsg
┌┬┐┌┬┐┌─┐┌─┐┬ ┬┌─┐┌┐
│││││└─┐│ ┬│││├┤ ├┴┐
─┴┘┴ ┴└─┘└─┘└┴┘└─┘└─┘
DMSG resolving proxy & browser client - access websites and http interfaces over dmsg
.conf file may also be specified with
DMSGWEB=/path/to/dmsgweb.conf skywire dmsg web

Usage:
web
dmsgweb

Available Commands:
completion Generate the autocompletion script for the specified shell
gen-keys generate public / secret keypair
completion Generate the autocompletion script for the specified shell
srv Serve HTTP or raw TCP from local port over DMSG

Flags:
-d, --dmsg-disc string dmsg discovery url default:
http://dmsgd.skywire.skycoin.com
-f, --filter string domain suffix to filter (default ".dmsg")
-l, --loglvl string [ debug | warn | error | fatal | panic | trace | info ]
-p, --port string port to serve the web application (default "8080")
-r, --proxy string configure additional socks5 proxy for dmsgweb (i.e. 127.0.0.1:1080)
-t, --resolve string resolve the specified dmsg address:port on the local port & disable proxy
-e, --sess int number of dmsg servers to connect to (default 1)
-s, --sk cipher.SecKey a random key is generated if unspecified
(default 0000000000000000000000000000000000000000000000000000000000000000)
-q, --socks string port to serve the socks5 proxy (default "4445")
-v, --version version for web
-r, --addproxy string configure additional socks5 proxy for dmsgweb (i.e. 127.0.0.1:1080)

-D, --dmsg-disc string dmsg discovery url
(default "http://dmsgd.skywire.skycoin.com")
-z, --envs show example .conf file

-f, --filter string domain suffix to filter
(default ".dmsg")
-l, --loglvl string [ debug | warn | error | fatal | panic | trace | info ]

-p, --port uints port(s) to serve the web application
(default [8080])
-x, --proxy string connect to dmsg via proxy (i.e. '127.0.0.1:1080')

-t, --resolve strings resolve the specified dmsg address:port on the local port & disable proxy

-c, --rt bools proxy local port as raw TCP
(default [false])
-e, --sess int number of dmsg servers to connect to
(default 1)
-s, --sk cipher.SecKey a random key is generated if unspecified
(default 0000000000000000000000000000000000000000000000000000000000000000)
-q, --socks uint port to serve the socks5 proxy
(default 4445)
-v, --version version for dmsgweb

```

```
$ go run cmd/dmsgweb/dmsgweb.go srv --help
DMSG web server - serve HTTP or raw TCP interface from local port over DMSG
.conf file may also be specified with DMSGWEBSRV=/path/to/dmsgwebsrv.conf skywire dmsg web srv

Usage:
dmsgweb srv [flags]

Flags:
-D, --dmsg-disc string DMSG discovery URL
(default "http://dmsgd.skywire.skycoin.com")
-d, --dport uints DMSG port(s) to serve
(default [80])
-e, --dsess int DMSG sessions
(default 1)
-z, --envs show example .conf file

-l, --loglvl string [ debug | warn | error | fatal | panic | trace | info ]

-p, --lport uints local application interface port(s)
(default [8086])
-x, --proxy string connect to DMSG via proxy (e.g., '127.0.0.1:1080')

-c, --rt bools proxy local port as raw TCP, comma separated
(default [false])
-s, --sk cipher.SecKey a random key is generated if unspecified
(default 0000000000000000000000000000000000000000000000000000000000000000)
-w, --wl strings whitelisted keys for DMSG authenticated routes


```
Loading
Loading