Skip to content

Conversation

chlins
Copy link
Member

@chlins chlins commented Aug 25, 2025

This pull request updates the API to add support for specifying a proxy server port in the Host message, along with validation to ensure the port is within the allowed range. It also bumps the package version to reflect the new feature.

API changes:

  • Added a new field proxy_port of type int32 to the Host message in common.proto, with validation to require the value to be in the range [1024, 65535).
  • Updated the generated Go code in common.pb.go to include the new ProxyPort field and accessor method, and adjusted the protobuf descriptors accordingly. [1] [2] [3] [4]

Validation logic:

  • Added validation in common.pb.validate.go to ensure that ProxyPort is within the allowed range, returning an error if not.

Versioning:

  • Bumped the package version in Cargo.toml from 2.1.58 to 2.1.59.

Description

Related Issue

Motivation and Context

Signed-off-by: chlins <chlins.zhang@gmail.com>
@chlins chlins added the enhancement New feature or request label Aug 25, 2025
@chlins chlins enabled auto-merge (squash) August 25, 2025 07:51
Copy link

@LunaWhispers LunaWhispers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@gaius-qi gaius-qi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chlins chlins merged commit a46c1b9 into main Aug 25, 2025
6 checks passed
@chlins chlins deleted the feat/proxy-port-v1 branch August 25, 2025 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants