Skip to content

Commit abe0bdb

Browse files
committed
fixed the SecurityException when access agent remotely
1 parent f3ac03b commit abe0bdb

File tree

3 files changed

+3
-206
lines changed

3 files changed

+3
-206
lines changed

Agent/Program.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics;
4+
using System.Reflection;
45
using System.Runtime.Remoting;
56
using System.Runtime.Remoting.Channels;
67
using System.Runtime.Remoting.Channels.Ipc;
7-
using System.Reflection;
8+
using System.Runtime.Serialization.Formatters;
89
using System.Text;
910
using System.Threading;
1011
using SuperSocket.SocketBase;
@@ -65,7 +66,7 @@ static void Main(string[] args)
6566

6667
try
6768
{
68-
var serverChannel = new IpcServerChannel("IpcAgent", channelPort);
69+
var serverChannel = new IpcServerChannel("IpcAgent", channelPort, new BinaryServerFormatterSinkProvider { TypeFilterLevel = TypeFilterLevel.Full });
6970
var clientChannel = new IpcClientChannel();
7071
ChannelServices.RegisterChannel(serverChannel, false);
7172
ChannelServices.RegisterChannel(clientChannel, false);

SuperSocket.2012.NET40.sln

-98
This file was deleted.

SuperSocket.2012.sln

-106
This file was deleted.

0 commit comments

Comments
 (0)