mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
fixup
This commit is contained in:
@@ -102,7 +102,7 @@ _bind :: proc(skt: Any_Socket, ep: Endpoint) -> (err: Network_Error) {
|
|||||||
res := os.bind(os.Socket(s), (^os.SOCKADDR)(&sockaddr), i32(sockaddr.len))
|
res := os.bind(os.Socket(s), (^os.SOCKADDR)(&sockaddr), i32(sockaddr.len))
|
||||||
if res != os.ERROR_NONE {
|
if res != os.ERROR_NONE {
|
||||||
if res == os.EACCES && ep.port <= MAX_PRIVILEGED_PORT {
|
if res == os.EACCES && ep.port <= MAX_PRIVILEGED_PORT {
|
||||||
err = .Port_Reserved
|
err = .Privileged_Port_Without_Root
|
||||||
} else {
|
} else {
|
||||||
err = Bind_Error(res)
|
err = Bind_Error(res)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user