Skip to content

Commit

Permalink
fix: Support Gate Lite + Connect enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbraemer committed Jul 23, 2023
1 parent bafa850 commit 42d854f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/edition/java/lite/forward.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func dialRoute(
defer cancel()

var dialer net.Dialer
dst, err = dialer.DialContext(dialCtx, srcAddr.Network(), routeAddr)
dst, err = dialer.DialContext(dialCtx, "tcp", routeAddr)
if err != nil {
v := 0
if dialCtx.Err() != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/connectutil/config/setup_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ func (t *tunnelCreator) handle(ctx context.Context, proposal connect.SessionProp
return status.Error(codes.InvalidArgument, "session proposal is missing tunnel service address")
}
if proposal.Session().GetPlayer().GetAddr() == "" {
return status.Error(codes.InvalidArgument, "session proposal is player address")
return status.Error(codes.InvalidArgument, "session proposal is missing player address")
}
var gp *profile.GameProfile
if !proposal.Session().GetAuth().GetPassthrough() {
Expand Down

0 comments on commit 42d854f

Please sign in to comment.