Skip to content

Commit

Permalink
Change SocketConfig.Mark from int32 to uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
Vigilans committed Sep 9, 2021
1 parent 4a174e8 commit 37096b7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion common/session/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ type Content struct {
// Sockopt is the settings for socket connection.
type Sockopt struct {
// Mark of the socket connection.
Mark int32
Mark uint32
}

// SetAttribute attachs additional string attributes to content.
Expand Down
2 changes: 1 addition & 1 deletion infra/conf/transport_internet.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func (p TransportProtocol) Build() (string, error) {
}

type SocketConfig struct {
Mark int32 `json:"mark"`
Mark uint32 `json:"mark"`
TFO *bool `json:"tcpFastOpen"`
TProxy string `json:"tproxy"`
AcceptProxyProtocol bool `json:"acceptProxyProtocol"`
Expand Down
8 changes: 4 additions & 4 deletions transport/internet/config.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion transport/internet/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ message ProxyConfig {
// SocketConfig is options to be applied on network sockets.
message SocketConfig {
// Mark of the connection. If non-zero, the value will be set to SO_MARK.
int32 mark = 1;
uint32 mark = 1;

enum TCPFastOpenState {
// AsIs is to leave the current TFO state as is, unmodified.
Expand Down

0 comments on commit 37096b7

Please sign in to comment.