-
Notifications
You must be signed in to change notification settings - Fork 18
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.