Skip to content

Commit

Permalink
Fix regression on arg parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed Dec 18, 2024
1 parent afd89b3 commit 3bcf083
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/serverino/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,8 @@ template ServerinoMain(Modules...)
int main(string[] args)
{
import std.base64 : Base64;
if (!ServerinoProcess.isDaemon)
if (environment.get("SERVERINO_ARGS") !is null)
args = (cast(string)Base64.decode(environment.get("SERVERINO_ARGS"))).split("\0");

return mainServerinoLoop!OnMainThread(args);
}
}
Expand Down

0 comments on commit 3bcf083

Please sign in to comment.