derptun 0.9.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -158,8 +158,8 @@ On `serverhost`:
158
158
 
159
159
  ```bash
160
160
  npx -y derptun@latest token server > server.dts
161
- npx -y derptun@latest token client --token "$(cat server.dts)" > client.dtc
162
- npx -y derptun@latest serve --token "$(cat server.dts)" --tcp 127.0.0.1:22
161
+ npx -y derptun@latest token client --token-file server.dts > client.dtc
162
+ npx -y derptun@latest serve --token-file server.dts --tcp 127.0.0.1:22
163
163
  ```
164
164
 
165
165
  Copy only `client.dtc` to `clienthost`.
@@ -167,7 +167,7 @@ Copy only `client.dtc` to `clienthost`.
167
167
  On `clienthost`:
168
168
 
169
169
  ```bash
170
- npx -y derptun@latest open --token "$(cat client.dtc)" --listen 127.0.0.1:2222
170
+ npx -y derptun@latest open --token-file client.dtc --listen 127.0.0.1:2222
171
171
  ssh -p 2222 user@127.0.0.1
172
172
  ```
173
173
 
@@ -177,7 +177,7 @@ For SSH without a separate local listener, use `ProxyCommand`:
177
177
  Host serverhost-derptun
178
178
  HostName serverhost
179
179
  User foo
180
- ProxyCommand derptun connect --token ~/.config/derptun/client.dtc --stdio
180
+ ProxyCommand derptun connect --token-file ~/.config/derptun/client.dtc --stdio
181
181
  ```
182
182
 
183
183
  The server token is secret serving authority. Keep it on the serving machine or in its secret manager. The client token can connect until it expires, but it cannot serve or mint more tokens.
@@ -186,9 +186,11 @@ Server tokens default to 180 days. Client tokens default to 90 days and cannot o
186
186
 
187
187
  ```bash
188
188
  npx -y derptun@latest token server --expires 2026-05-01T00:00:00Z > server.dts
189
- npx -y derptun@latest token client --token "$(cat server.dts)" --expires 2026-04-25T00:00:00Z > client.dtc
189
+ npx -y derptun@latest token client --token-file server.dts --expires 2026-04-25T00:00:00Z > client.dtc
190
190
  ```
191
191
 
192
+ `--token TOKEN` still works for quick one-off commands. Prefer `--token-file PATH` for durable tokens. `--token-stdin` reads the token from the first stdin line when a pipe is more convenient.
193
+
192
194
  The first `derptun` release is TCP-only. UDP forwarding is planned for use cases like Minecraft Bedrock servers, but it is not part of this release.
193
195
 
194
196
  ### Useful Extras
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "derptun",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "bin": {
6
6
  "derptun": "bin/derptun.js"