1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-09-06 07:07:49 -04:00

Added sending software string to registry

This patch adds sending the APRSD signature and url
along with the regsitry request.
This commit is contained in:
Hemna 2024-02-27 11:05:41 -05:00
parent 1ad2e135dc
commit 8264c94bd6

View File

@ -3,6 +3,7 @@ import logging
from oslo_config import cfg from oslo_config import cfg
import requests import requests
import aprsd
from aprsd import stats from aprsd import stats
from aprsd import threads as aprsd_threads from aprsd import threads as aprsd_threads
@ -34,6 +35,8 @@ class APRSRegistryThread(aprsd_threads.APRSDThread):
"description": CONF.registry.description, "description": CONF.registry.description,
"service_website": CONF.registry.service_website, "service_website": CONF.registry.service_website,
"uptime": stats.APRSDStats().uptime, "uptime": stats.APRSDStats().uptime,
"software": f"APRSD version {aprsd.__version__} "
"https://github.com/craigerl/aprsd",
} }
try: try:
requests.post( requests.post(