This commit is contained in:
qaq
2025-07-10 17:16:52 +08:00
parent 070a8e8623
commit 286962ff33
38 changed files with 212 additions and 877 deletions
@@ -26,4 +26,9 @@ public class ForwardDto {
@Min(value = 1, message = "端口号不能小于1")
@Max(value = 65535, message = "端口号不能大于65535")
private Integer inPort;
/**
* 是否启用代理协议(0: 禁用, 1: 启用)
*/
private Integer proxyProtocol = 0; // 设置默认值为0(禁用)
}
@@ -32,4 +32,9 @@ public class ForwardUpdateDto {
@Min(value = 1, message = "端口号不能小于1")
@Max(value = 65535, message = "端口号不能大于65535")
private Integer inPort;
/**
* 是否启用代理协议(0: 禁用, 1: 启用)
*/
private Integer proxyProtocol = 0; // 设置默认值为0(禁用)
}
@@ -85,4 +85,9 @@ public class ForwardWithTunnelDto {
private Long outFlow;
private String strategy;
}
/**
* 是否启用代理协议(0: 禁用, 1: 启用)
*/
private Integer proxyProtocol;
}
@@ -9,8 +9,6 @@ import javax.validation.constraints.Min;
@Data
public class UserDto {
private String name = "user";
@NotBlank(message = "用户名不能为空")
private String user;