1
0
mirror of https://git.tuxpa.in/a/code-server.git synced 2024-12-26 12:15:26 +00:00

Remove redundant serverAddress check

We now guarantee there is an address.
This commit is contained in:
Asher 2020-10-27 17:35:42 -05:00
parent 305348f0ac
commit cde94d5ed4
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A

View File

@ -159,7 +159,7 @@ const main = async (args: DefaultedArgs): Promise<void> => {
}
}
if (serverAddress && !args.socket && args.open) {
if (!args.socket && args.open) {
// The web socket doesn't seem to work if browsing with 0.0.0.0.
const openAddress = serverAddress.replace(/:\/\/0.0.0.0/, "://localhost")
await open(openAddress).catch((error: Error) => {