jhalter / mobius

A Hotline server implemented in Golang for macOS, Linux, and Windows operating systems
MIT License
73 stars 8 forks source link

If no predefined default path for server config, look in the current dir #129

Closed dressupgeekout closed 3 months ago

dressupgeekout commented 3 months ago

This was the only change I needed to make in order to hit the ground running with a Hotline server on NetBSD. I'll admit that I haven't validated every code path to ensure NetBSD makes a fully-featured Mobius host, but I was able to get from zero to 60 with nothing but this.

Given just how much functionality this change has enabled in my testing, I kinda expect it would also enable FreeBSD, OpenBSD, DragonFly and perhaps every other platform supported by Go to Just Work, too.

jhalter commented 3 months ago

Hey, great to hear that you were able to successfully run the server on NetBSD and thanks for the PR.

Searching for the config dir in the cwd seems like a reasonable default.