mirror of
https://github.com/craigerl/aprsd.git
synced 2026-08-17 09:07:17 -04:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 95fecd2394 | |||
| c8c23e6185 |
+5
-5
@@ -470,11 +470,6 @@ def server(
|
|||||||
LOG.info("Creating client connection")
|
LOG.info("Creating client connection")
|
||||||
client.factory.create().client
|
client.factory.create().client
|
||||||
|
|
||||||
# Create the initial PM singleton and Register plugins
|
|
||||||
LOG.info("Loading Plugin Manager and registering plugins")
|
|
||||||
plugin_manager = plugin.PluginManager(config)
|
|
||||||
plugin_manager.setup_plugins()
|
|
||||||
|
|
||||||
# Now load the msgTrack from disk if any
|
# Now load the msgTrack from disk if any
|
||||||
packets.PacketList(config=config)
|
packets.PacketList(config=config)
|
||||||
if flush:
|
if flush:
|
||||||
@@ -489,6 +484,11 @@ def server(
|
|||||||
packets.WatchList(config=config).load()
|
packets.WatchList(config=config).load()
|
||||||
packets.SeenList(config=config).load()
|
packets.SeenList(config=config).load()
|
||||||
|
|
||||||
|
# Create the initial PM singleton and Register plugins
|
||||||
|
LOG.info("Loading Plugin Manager and registering plugins")
|
||||||
|
plugin_manager = plugin.PluginManager(config)
|
||||||
|
plugin_manager.setup_plugins()
|
||||||
|
|
||||||
rx_thread = threads.APRSDRXThread(
|
rx_thread = threads.APRSDRXThread(
|
||||||
msg_queues=threads.msg_queues,
|
msg_queues=threads.msg_queues,
|
||||||
config=config,
|
config=config,
|
||||||
|
|||||||
@@ -452,7 +452,7 @@ def send_email(config, to_addr, content):
|
|||||||
msg["Subject"] = subject
|
msg["Subject"] = subject
|
||||||
msg["From"] = config["aprsd"]["email"]["smtp"]["login"]
|
msg["From"] = config["aprsd"]["email"]["smtp"]["login"]
|
||||||
msg["To"] = to_addr
|
msg["To"] = to_addr
|
||||||
server = _smtp_connect()
|
server = _smtp_connect(config)
|
||||||
if server:
|
if server:
|
||||||
try:
|
try:
|
||||||
server.sendmail(
|
server.sendmail(
|
||||||
|
|||||||
Reference in New Issue
Block a user