1
0
mirror of https://github.com/AR2000AR/openComputers_codes.git synced 2025-09-08 14:41:14 +02:00

[osinetwrok] fixed udp protocol type missing

This commit is contained in:
2023-04-12 15:28:11 +02:00
parent 57e0d74678
commit efbb08c307
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ function UDPLayer:send(from, to, payload)
checkArg(1, from, 'number')
checkArg(2, to, 'number')
checkArg(3, payload, 'table')
network.router:send(IPv4Packet(from, to, payload))
network.router:send(IPv4Packet(from, to, payload, self.layerType))
end
function UDPLayer:getAddr() return self._layer:getAddr() end

View File

@@ -101,7 +101,7 @@ function UDPSocket:sendto(datagram, ip, port)
return 1
end
---@param address number
---@param address string
---@param port number
---@overload fun(self,address:string)
---@return number? success, string? reason