Closed reqshark closed 6 years ago
also we might want to get #188 in first so we can see tests are passing for this new option
do we want to rekick the tests?
yessir let me just rebase off master, just a sec
k that should get us back to green on travis :)
fixes #180 making the option available from the sockopt api:
socket.maxttl(hops)
(Function, param: Number, default:
8
): Sets the maximum number of "hops" a message can go through before it is dropped. Each time the message is received (for example via thenn_device(3)
function) counts as a single hop. This provides a form of protection against inadvertent loops.Pass no parameter for the socket's maxttl hop count.
@nickdesaulniers, review?