Skip to content

Commit

Permalink
mod: ParsePortRangeStr make - is 1-65535
Browse files Browse the repository at this point in the history
  • Loading branch information
XinRoom committed Jan 25, 2024
1 parent 5045887 commit c915a7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/port/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ func (hi *HttpInfo) String() string {

// ParsePortRangeStr 解析端口字符串
func ParsePortRangeStr(portStr string) (out [][]uint16, err error) {
if portStr == "-" {
portStr = "1-65535"
}
portsStrGroup := strings.Split(portStr, ",")
var portsStrGroup3 []string
var portStart, portEnd uint64
Expand Down

0 comments on commit c915a7a

Please sign in to comment.