From 11f89c4c34e2d9b2d4b199b537c0f1a5ccae2a3c Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sun, 7 Mar 2021 15:48:48 +0530 Subject: [PATCH] MainApplicationContext: fixed issue with net5 migration to open dashboard url. --- DnsServerSystemTrayApp/MainApplicationContext.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/DnsServerSystemTrayApp/MainApplicationContext.cs b/DnsServerSystemTrayApp/MainApplicationContext.cs index 8b3c47f1..56fd4ddc 100644 --- a/DnsServerSystemTrayApp/MainApplicationContext.cs +++ b/DnsServerSystemTrayApp/MainApplicationContext.cs @@ -1,6 +1,6 @@ /* Technitium DNS Server -Copyright (C) 2020 Shreyas Zare (shreyas@technitium.com) +Copyright (C) 2021 Shreyas Zare (shreyas@technitium.com) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -551,7 +551,12 @@ namespace DnsServerSystemTrayApp catch { } - Process.Start("http://localhost:" + port.ToString()); + ProcessStartInfo processInfo = new ProcessStartInfo("http://localhost:" + port.ToString()); + + processInfo.UseShellExecute = true; + processInfo.Verb = "open"; + + Process.Start(processInfo); } private void DefaultNetworkDnsMenuItem_Click(object sender, EventArgs e)