From cdb551a24d7500ec6d702c9c7ec40e17e5a78b92 Mon Sep 17 00:00:00 2001 From: Mark Pashmfouroush Date: Thu, 21 Mar 2024 19:35:20 +0000 Subject: [PATCH] misc: update readme Signed-off-by: Mark Pashmfouroush --- README.md | 3 ++- app/app.go | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ca0173689..2f31f993d 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,9 @@ FLAGS --gool enable gool mode (warp in warp) --cfon enable psiphon mode (must provide country as well) --country STRING psiphon country code (valid values: [AT BE BG BR CA CH CZ DE DK EE ES FI FR GB HU IE IN IT JP LV NL NO PL RO RS SE SG SK UA US]) (default: AT) - --scan enable warp scanning (experimental) + --scan enable warp scanning --rtt DURATION scanner rtt limit (default: 1s) + -c, --config STRING path to config file ``` ### Country Codes for Psiphon diff --git a/app/app.go b/app/app.go index f2b4f0d56..d4e0c9fdb 100644 --- a/app/app.go +++ b/app/app.go @@ -111,7 +111,11 @@ func runWarp(ctx context.Context, l *slog.Logger, bind netip.AddrPort, endpoint return err } - tnet.StartProxy(bind) + _, err = tnet.StartProxy(bind) + if err != nil { + return err + } + l.Info("serving proxy", "address", bind) return nil