We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f09d5a0 commit 525b925Copy full SHA for 525b925
src/SharpWebserver/Program.cs
@@ -8,7 +8,6 @@ it under the terms of the GNU General Public License as published by
8
*/
9
10
using System.Net;
11
-using System.Net.Sockets;
12
using CSScriptLib;
13
using System;
14
using System.IO;
@@ -93,7 +92,12 @@ static async Task Main(string[] args)
93
92
HttpListener listener = new();
94
95
//Set valid prefixes
96
- listener.Prefixes.Add($"http://127.0.0.1:{GlobalConfig.PortNumber}/");
+ foreach (var item in GlobalConfig.Prefixes)
+ {
97
+ //Prefixes should look like "http://127.0.0.1"
98
+ //or "https://www.example.com"
99
+ listener.Prefixes.Add($"{item}:{GlobalConfig.PortNumber}/");
100
+ }
101
102
//Register the input handler
103
var InputHandler = Task.Run(HandleInputAsync);
0 commit comments