mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-30 13:51:52 +02:00
smarter scheme and port detection
This commit is contained in:
@@ -28,6 +28,10 @@ func (p Port) inBound() bool {
|
||||
return p >= MinPort && p <= MaxPort
|
||||
}
|
||||
|
||||
func (p Port) String() string {
|
||||
return strconv.Itoa(int(p))
|
||||
}
|
||||
|
||||
const (
|
||||
MinPort = 0
|
||||
MaxPort = 65535
|
||||
|
||||
Reference in New Issue
Block a user