Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit fc15352

Browse files
committed
#564 update error msg
1 parent 8d26b5d commit fc15352

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Titanium.Web.Proxy/ProxyServer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,10 @@ public void SetAsSystemHttpsProxy(ExplicitProxyEndPoint endPoint)
417417
/// <param name="protocolType">The proxy protocol type.</param>
418418
public void SetAsSystemProxy(ExplicitProxyEndPoint endPoint, ProxyProtocolType protocolType)
419419
{
420-
if (RunTime.IsRunningOnMono)
420+
if (!RunTime.IsWindows)
421421
{
422-
throw new Exception("Mono Runtime do not support system proxy settings.");
422+
throw new NotSupportedException(@"Setting system proxy settings are only supported in Windows.
423+
Please manually confugure you operating system to use this proxy's port and address.");
423424
}
424425

425426
validateEndPointAsSystemProxy(endPoint);

0 commit comments

Comments
 (0)