mirror of
https://github.com/fatedier/frp.git
synced 2026-03-24 00:48:31 +08:00
optimize the code of the command line (#3614)
This commit is contained in:
@@ -42,7 +42,11 @@ func ValidateVisitorConfigurer(c v1.VisitorConfigurer) error {
|
||||
|
||||
func validateVisitorBaseConfig(c *v1.VisitorBaseConfig) error {
|
||||
if c.Name == "" {
|
||||
return errors.New("name should not be empty")
|
||||
return errors.New("name is required")
|
||||
}
|
||||
|
||||
if c.ServerName == "" {
|
||||
return errors.New("server name is required")
|
||||
}
|
||||
|
||||
if c.BindPort == 0 {
|
||||
|
||||
Reference in New Issue
Block a user