fix error which make connecting impossible

Signed-off-by: conblem <mail@conblem.me>
pull/8047/head
conblem 2023-05-05 13:58:16 +02:00
parent 159a1d2f0c
commit a19eda5ff4
No known key found for this signature in database
GPG Key ID: 8D6908C57DBFCE2C
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ func newIPN(jsConfig js.Value) map[string]any {
return jsIPN.fetch(url)
}),
"tcp": js.FuncOf(func(this js.Value, args []js.Value) any {
if len(args) != 3 || len(args) != 4 {
if len(args) != 3 && len(args) != 4 {
log.Printf("Usage: tcp(hostname, port, readCallback, connectTimeoutSeconds)")
return nil
}