mirror of
https://github.com/fatedier/frp.git
synced 2025-08-04 20:49:04 +00:00
optimize the code of the command line (#3614)
This commit is contained in:
@@ -134,6 +134,9 @@ type PortsRange struct {
|
||||
type PortsRangeSlice []PortsRange
|
||||
|
||||
func (p PortsRangeSlice) String() string {
|
||||
if len(p) == 0 {
|
||||
return ""
|
||||
}
|
||||
strs := []string{}
|
||||
for _, v := range p {
|
||||
if v.Single > 0 {
|
||||
|
Reference in New Issue
Block a user