go-libp2p
go-libp2p copied to clipboard
Use of specific network interface for mDNS server
I created this PR because I had to adapt the mDNS service to be used on specific interfaces. This can be useful for others as well.
The usage of a specific network interface is not mandatory, nil can be passed as well.
Let me know what you think or how can this PR can be improved :)
This looks good to me. @aarshkshah1992 you've been looking at these things recently, any thoughts/concerns?
Thanks guys for taking the time to review this PR. I am quite new to Go so even if the language is simple to learn, those comments are really appreciated to level up my dev skills in Go :smiley:
I am going to consider @aschmahmann solution to use a more robust signature for NewMdnsService
@aschmahmann @aarshkshah1992 I implemented the optional functions to set mDNS service parameters. Let me know what you think
@aschmahmann aarshkshah1992 Anything I should do to merge this PR?