You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage:
```
add
Adds a service to register on the Tor network
Usage:
tor [options] add <name> <service>
Arguments:
<name> Name of the service to register
<service> Address and port of the local service being registered, such as 127.0.0.1:8080
Options:
-p, --port <port> Optional port on the Tor network to listen on, if different than the service port
-?, -h, --help Show help and usage information
```
Service directory is set to `~/tor/[name]` since the service keys and address should be reused across tool reinstalls/updates (especially updates of the tor binaries themselves).
The configuration is saved to `~/tor/.netconfig` so it's also preserved across reinstalls.
Example configuration:
```
[tor]
proxy = 1337
socks = 1338
control = 1339
[tor "echo"]
port = 8080
service = 127.0.0.1:8080
```
The `torrc` file is updated accordingly after configuration and before starting, so that it picks up our changes.
> NOTE: this is possible because we depend on our fork of TorSharp which implements the fix proposed in joelverhagen/TorSharp#70.
Fixes#1
Copy file name to clipboardExpand all lines: src/dotnet-tor/Program.cs
+2-26Lines changed: 2 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -32,35 +32,11 @@
32
32
AnsiConsole.MarkupLine($"[yellow]New version v{update.Identity.Version} from {(DateTimeOffset.Now-(update.Published??DateTimeOffset.Now)).Humanize()} ago is available.[/] Update with: [lime]dotnet tool update -g dotnet-echo[/]");
0 commit comments