Skip to content

Commit 239056b

Browse files
committed
feat: add Identity field to multiple services
1 parent 8ecd086 commit 239056b

21 files changed

Lines changed: 26 additions & 7 deletions

File tree

chatter-bbs/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func runChatter(cmd *cobra.Command, args []string) error {
7272
RelayURLs: utils.SplitCSV(flagServerURLs),
7373
BanMITM: flagBanMITM,
7474
Discovery: flagDiscovery,
75+
Identity: types.Identity{Name: flagName},
7576
IdentityPath: flagIdentityPath,
7677
Metadata: types.LeaseMetadata{
7778
Description: flagDescription,

distributed-web-server/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ replace github.com/gosuda/portal-tunnel/v2 => github.com/gosuda/portal-tunnel/v2
66

77
require (
88
github.com/gabriel-vasile/mimetype v1.4.13
9-
github.com/gosuda/portal-tunnel/v2 v2.1.5
9+
github.com/gosuda/portal-tunnel/v2 v2.3.0
1010
github.com/joho/godotenv v1.5.1
1111
github.com/microcosm-cc/bluemonday v1.0.27
1212
github.com/rs/zerolog v1.35.0

distributed-web-server/manager/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,9 +1062,9 @@ func runManagerCmd(cmd *cobra.Command, args []string) error {
10621062
}
10631063

10641064
exposure, err := sdk.Expose(ctx, sdk.ExposeConfig{
1065-
RelayURLs: utils.SplitCSV(flagServerURLs),
1066-
BanMITM: flagBanMITM,
1067-
Discovery: flagDiscovery,
1065+
RelayURLs: utils.SplitCSV(flagServerURLs),
1066+
BanMITM: flagBanMITM,
1067+
Discovery: flagDiscovery,
10681068
IdentityPath: flagIdentityPath,
10691069
Metadata: types.LeaseMetadata{
10701070
Description: flagDescription,

doom/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ func runDoom(cmd *cobra.Command, args []string) error {
7272
RelayURLs: utils.SplitCSV(flagServerURLs),
7373
BanMITM: flagBanMITM,
7474
Discovery: flagDiscovery,
75+
Identity: types.Identity{Name: flagName},
7576
IdentityPath: flagIdentityPath,
7677
Metadata: types.LeaseMetadata{
7778
Description: flagDescription,

emulator-js/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func runEmulator(cmd *cobra.Command, args []string) error {
7979
RelayURLs: utils.SplitCSV(flagServerURLs),
8080
BanMITM: flagBanMITM,
8181
Discovery: flagDiscovery,
82+
Identity: types.Identity{Name: flagName},
8283
IdentityPath: flagIdentityPath,
8384
Metadata: types.LeaseMetadata{
8485
Description: flagDescription,

ffmpeg-converter/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func run(cmd *cobra.Command, args []string) error {
8686
RelayURLs: utils.SplitCSV(flagServerURLs),
8787
BanMITM: flagBanMITM,
8888
Discovery: flagDiscovery,
89+
Identity: types.Identity{Name: flagName},
8990
IdentityPath: flagIdentityPath,
9091
Metadata: types.LeaseMetadata{
9192
Description: flagDescription,

gosuda-blog/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ func runBlog(cmd *cobra.Command, args []string) error {
7979
RelayURLs: utils.SplitCSV(flagServerURLs),
8080
BanMITM: flagBanMITM,
8181
Discovery: flagDiscovery,
82+
Identity: types.Identity{Name: flagName},
8283
IdentityPath: flagIdentityPath,
8384
Metadata: types.LeaseMetadata{
8485
Description: flagDescription,

http-backend/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func runClient(cmd *cobra.Command, args []string) error {
6363
RelayURLs: utils.SplitCSV(flagServerURLs),
6464
BanMITM: flagBanMITM,
6565
Discovery: flagDiscovery,
66+
Identity: types.Identity{Name: flagName},
6667
IdentityPath: flagIdentityPath,
6768
Metadata: types.LeaseMetadata{
6869
Description: flagDescription,

iframe-player/main.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ func runIframePlayer(cmd *cobra.Command, args []string) error {
8484
handler := stripPeer(baseHandler)
8585

8686
exposure, err := portalapp.Expose(ctx, sdk.ExposeConfig{
87-
RelayURLs: utils.SplitCSV(flagServerURLs),
88-
BanMITM: flagBanMITM,
89-
Discovery: flagDiscovery,
87+
RelayURLs: utils.SplitCSV(flagServerURLs),
88+
BanMITM: flagBanMITM,
89+
Discovery: flagDiscovery,
90+
Identity: types.Identity{Name: flagName},
9091
IdentityPath: flagIdentityPath,
9192
Metadata: types.LeaseMetadata{
9293
Description: flagDescription,

mafia/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ func runServer(cmd *cobra.Command, args []string) error {
6464
RelayURLs: utils.SplitCSV(flagServerURLs),
6565
BanMITM: flagBanMITM,
6666
Discovery: flagDiscovery,
67+
Identity: types.Identity{Name: flagName},
6768
IdentityPath: flagIdentityPath,
6869
Metadata: types.LeaseMetadata{
6970
Description: "Portal demo: multi-room mafia game",

0 commit comments

Comments
 (0)