Skip to content

Commit f018575

Browse files
committed
Filter possibly whitespace-only api.bind keys
1 parent 1242e0a commit f018575

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/OpenRCT2.API/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private static IHost BuildHost(string[] args)
102102
.UseContentRoot(Directory.GetCurrentDirectory())
103103
.UseConfiguration(config);
104104

105-
if (apiConfig?.Bind != null)
105+
if (!string.IsNullOrWhiteSpace(apiConfig?.Bind))
106106
{
107107
webBuilder.UseUrls(apiConfig.Bind);
108108
}

0 commit comments

Comments
 (0)