0.1.11
This commit is contained in:
parent
b69cd74f1a
commit
6654d7cd75
1 changed files with 11 additions and 11 deletions
|
@ -54,7 +54,7 @@ module NatPMP
|
|||
io.write_bytes(@internal_port, IO::ByteFormat::BigEndian)
|
||||
io.write_bytes(@external_port, IO::ByteFormat::BigEndian)
|
||||
io.write_bytes(@lifetime, IO::ByteFormat::BigEndian)
|
||||
return io
|
||||
io
|
||||
end
|
||||
|
||||
# Converts the struct instance variables to an StaticArray.
|
||||
|
@ -79,7 +79,7 @@ module NatPMP
|
|||
slice[9] = l[1]
|
||||
slice[10] = l[2]
|
||||
slice[11] = l[3]
|
||||
return slice
|
||||
slice
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -137,7 +137,7 @@ module NatPMP
|
|||
end
|
||||
end
|
||||
|
||||
return msg
|
||||
msg
|
||||
end
|
||||
|
||||
# Returns the external address response as a `Slice(UInt8)`
|
||||
|
@ -147,7 +147,7 @@ module NatPMP
|
|||
# ```
|
||||
def send_external_address_request_as_bytes : Bytes
|
||||
msg = send_external_address_request_
|
||||
return msg
|
||||
msg
|
||||
end
|
||||
|
||||
# Returns the external address response as a `Tuple(UInt8, UInt8, UInt16, UInt32, String | Nil)`
|
||||
|
|
Loading…
Add table
Reference in a new issue