Skip to content

Commit

Permalink
Replace IP with hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Feb 11, 2025
1 parent 890b0bf commit 5821edf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion terrariumEngine.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import statistics
import sdnotify
import gettext
import socket

from concurrent import futures
from pathlib import Path
Expand Down Expand Up @@ -190,7 +191,7 @@ def __init__(self, version):

self.motd()

startup_message = f'TerrariumPI {self.version} is up and running at address: http://{self.settings["host"]}:{self.settings["port"]} in {time.time()-self.starttime:.2f} seconds.'
startup_message = f'TerrariumPI {self.version} is up and running at address: http://{socket.getfqdn()}:{self.settings["port"]} in {time.time()-self.starttime:.2f} seconds.'
logger.info(startup_message)
self.notification.broadcast(startup_message, startup_message, self.settings["profile_image"])

Expand Down

0 comments on commit 5821edf

Please sign in to comment.