chore: fix log and readme
Kim committed
Mar 31, 2026 at 15:04 UTC
9541aa8db453080f68768af991be6942a54f8fba
5 files changed
+9
-2
README.md
+1
@@ -65,6 +65,7 @@ portal expose 3000
65
```
66
67
```powershell
68
+$ProgressPreference = 'SilentlyContinue'
69
irm https://github.com/gosuda/portal/releases/latest/download/install.ps1 | iex
70
portal expose 3000
71
```
README.zh-CN.md
+1
@@ -65,6 +65,7 @@ portal expose 3000
65
```
66
67
```powershell
68
+$ProgressPreference = 'SilentlyContinue'
69
irm https://github.com/gosuda/portal/releases/latest/download/install.ps1 | iex
70
portal expose 3000
71
```
cmd/portal-tunnel/README.md
+2
@@ -13,6 +13,7 @@ portal list
13
```
14
15
```powershell
16
+$ProgressPreference = 'SilentlyContinue'
17
irm https://github.com/gosuda/portal/releases/latest/download/install.ps1 | iex
18
portal expose 3000
19
portal list
@@ -27,6 +28,7 @@ portal list
28
```
29
30
```powershell
31
+$ProgressPreference = 'SilentlyContinue'
32
irm https://portal.example.com/install.ps1 | iex
33
portal expose 3000
34
portal list
cmd/portal-tunnel/relays.go
+1
-1
@@ -31,7 +31,7 @@ func proxyExposure(ctx context.Context, exposure *sdk.Exposure, serviceName stri
31
Str("tcp_target", tcpTarget).
32
Str("service_name", serviceName).
33
Strs("relays", exposure.ActiveRelayURLs()).
34
- Msg("starting portal tunnel")
34
+ Msg("starting portal tunnel; public URLs will be logged as relays become ready")
35
if udpEnabled {
36
log.Info().
37
Str("udp_target", udpTarget).
sdk/listener.go
+4
-1
@@ -148,7 +148,10 @@ func (l *Listener) runStartup(ctx context.Context, readyTarget int) {
148
Str("relay_url", l.api.baseURL.String()).
149
Str("lease_id", l.LeaseID())
150
if publicURL != "" {
151
- event = event.Str("public_url", publicURL)
151
+ event.
152
+ Str("public_url", publicURL).
153
+ Msg("connected; open this URL: " + publicURL)
154
+ return
155
}
156
event.Msg("relay listener registered")
157
return