mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-17 14:09:44 +02:00
Update default wake timeout to 30 seconds, fixed port selection, improved idlewatcher
This commit is contained in:
@@ -8,8 +8,8 @@ import (
|
||||
|
||||
type Port int
|
||||
|
||||
func ValidatePort(v string) (Port, E.NestedError) {
|
||||
p, err := strconv.Atoi(v)
|
||||
func ValidatePort[String ~string](v String) (Port, E.NestedError) {
|
||||
p, err := strconv.Atoi(string(v))
|
||||
if err != nil {
|
||||
return ErrPort, E.Invalid("port number", v).With(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user