Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't register with avahi if KISSPORT is disabled #386

Open
ghulands opened this issue Apr 7, 2022 · 1 comment
Open

Don't register with avahi if KISSPORT is disabled #386

ghulands opened this issue Apr 7, 2022 · 1 comment

Comments

@ghulands
Copy link

ghulands commented Apr 7, 2022

I have a setup where i'm using only an igate to publish weather data so I have in my config the kiss and agw ports set to 0. The logs show that it still registers with avahi with port 0.

LOGDIR /var/log/direwolf-wx/
ADEVICE null null

CHANNEL 0
MYCALL N0CALL-13

KISSPORT 0
AGWPORT 0

IGSERVER noam.aprs2.net
IGLOGIN N0CALL-13 12345
IGFILTER  t/m/N0CALL-13/1
# send weather info over igate
PBEACON sendto=IG delay=1 every=5 symbol="weather station" lat=XX.XXXXX long=XX.XXXX commentcmd="curl --silent http://wx/wxnow.txt | tail -1"

Logs

Apr  7 16:04:42 aprs direwolf-wx[5050]: DNS-SD: Avahi: Announcing KISS TCP on port 0 as 'Dire Wolf on aprs'
Apr  7 16:04:42 aprs direwolf-wx[5050]: DNS-SD: Avahi: Service name collision, renaming service to 'Dire Wolf on aprs #2'
Apr  7 16:04:42 aprs direwolf-wx[5050]: DNS-SD: Avahi: Announcing KISS TCP on port 0 as 'Dire Wolf on aprs #2'
Apr  7 16:04:42 aprs direwolf-wx[5050]: DNS-SD: Avahi: Service 'Dire Wolf on aprs #2' successfully registered.

Registering to avahi should only happen when the KISSPORT > 0.

@ghulands
Copy link
Author

ghulands commented Apr 7, 2022

I just found the PR where the port check is there, but it doesn't seem to work.

I worked out from the code a work around by having in the config

DNSSD 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant