FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Validate proxy and gateway port settings by rissrice2105-agent · Pull Request #23 · profullstack/moshpit-proxy · GitHub

Validate proxy and gateway port settings - #23

Merged
ralyodio merged 1 commit into
profullstack:mainfrom
rissrice2105-agent:fix/validate-port-settings
Aug 11, 2026
Merged

Validate proxy and gateway port settings#23
ralyodio merged 1 commit into
profullstack:mainfrom
rissrice2105-agent:fix/validate-port-settings

Conversation

Copy link
Copy Markdown
Contributor

Closes #22

Summary

  • require complete decimal port strings instead of accepting parseInt prefixes
  • reject zero, negative, fractional, non-numeric, and values above 65535
  • preserve whitespace trimming and documented defaults
  • cover malformed inputs and both valid range boundaries

Validation

  • node --test tests/config.test.ts (2/2)
  • focused TypeScript check for lib/config.ts and tests/config.test.ts
  • git diff --check

ralyodio merged commit 0662171 into profullstack:main Aug 11, 2026
3 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Port settings accept malformed and out-of-range values

2 participants


Back | FazBrowse Home | New Git URL