Skip to content

message.ttl is not a function #42

@mtiger2k

Description

@mtiger2k

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions