achingbrain / achingbrain/ssdp

message.ttl is not a function

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
59
Forks
19
PR merge metrics
No merged PRs in 30d

Description

when I create ipfs-daemon with latest releases, I encoutnered this issue:
TypeError: message.ttl is not a function
at notify (file:///Users/tiansha/ipfs/dids-test/node_modules/@achingbrain/ssdp/dist/src/commands/notify.js:14:77)
at SSDPImpl.emit (node:events:513:28)
at parseSsdpMessage (file:///Users/tiansha/ipfs/dids-test/node_modules/@achingbrain/ssdp/dist/src/parse-ssdp-message.js:38:10)
at SSDPImpl.emit (node:events:513:28)
at Socket. (file:///Users/tiansha/ipfs/dids-test/node_modules/@achingbrain/ssdp/dist/src/create-sockets.js:10:22)
at Socket.emit (node:events:513:28)
at UDP.onMessage [as onmessage] (node:dgram:933:8)

should change this line: resolveService(ssdp, message.USN, message.NT, message.LOCATION, message.ttl()) to
resolveService(ssdp, message.USN, message.NT, message.LOCATION, message.ttl ? message.ttl():188000)

thanks.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.