Skip to content

chore: drop unused image ports and duplicate health server setup - #7

Merged
ValgulNecron merged 2 commits into
masterfrom
chore/cleanup-unused-code
Nov 27, 2026
Merged

ValgulNecron merged 2 commits into
masterfrom
chore/cleanup-unused-code

Conversation

@ValgulNecron

@ValgulNecron ValgulNecron commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Cleanup pass with no behaviour change.

What Where Why it is safe
Removed EXPOSE 25565/tcp 25565/udp Dockerfile.frp, Dockerfile.playit, Dockerfile.tailscale No tunnel process listens on 25565; the operator builds container ports from the template plus 8091 and never reads image metadata
One newRelayHealthServer for the port 8091 server relay_health.go, tailscale.go Replaces two identical http.Server literals; listen calls and their error messages stay where they were
Removed an always-true check around the config file cleanup main.go renderConfig returns a fixed non-empty path whenever it succeeds, and the error case returns earlier
Removed test-only serveTailnet tailscale.go, tailscale_test.go It only forwarded to serveTailnetObserved(..., nil, nil); tests now call that directly
Dropped the ignored Config parameter of isUnrecoverable and superviseRelay's pass-through cfg main.go, relay_health.go, main_test.go, relay_health_test.go Unused; test calls lose only that argument
Corrected stale lines specs.md, README.md Layout note, tsnet version (v1.104.7 as in go.mod), PLAYIT_TUNNEL_NAME and GAMESERVER_NAME descriptions, routes served on 8091

Test edits were signed off by the maintainer and checked by a separate reviewer: no assertion was deleted or loosened.

Verification

go build ./... and go vet ./... pass. CI is green.

No user-visible change, so no changelog entry is needed with the pointer bump.

🤖 Generated with Claude Code

- Remove EXPOSE 25565 from the three images: no tunnel process listens on
  it, and the operator builds container ports from the template plus 8091.
- Build the port 8091 health server in one place (newRelayHealthServer)
  instead of two identical literals.
- Drop a check that can never be false around the config file cleanup:
  renderConfig returns a fixed non-empty path whenever it succeeds.
- specs.md and README.md: correct the layout note, the tsnet version, the
  PLAYIT_TUNNEL_NAME and GAMESERVER_NAME descriptions and the list of
  routes served on 8091.

No behaviour change.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6dfb815a-a3d0-4c43-b008-02f686ce46b9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ValgulNecron ValgulNecron self-assigned this Nov 26, 2026
- Drop serveTailnet, a wrapper only tests called; the tests call
  serveTailnetObserved(..., nil, nil), which is what it forwarded to.
- Drop the Config parameter isUnrecoverable ignored, and superviseRelay's
  cfg, which it only passed on to isUnrecoverable.

Test edits signed off by the maintainer; no assertion changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Claude <noreply@anthropic.com>
@ValgulNecron
ValgulNecron merged commit 8f3ad68 into master Nov 27, 2026
6 checks passed
@ValgulNecron
ValgulNecron deleted the chore/cleanup-unused-code branch November 27, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants