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:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user