Skip to content

Commit fe44fc5

Browse files
author
Geoff Norton
committed
In .:
2008-02-15 Geoff Norton <gnorton@novell.com> * src/mdhost.cs: Disable .NET remoting security on Tcp channels. svn path=/trunk/monodevelop/; revision=95769
1 parent 32d478e commit fe44fc5

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

main/src/tools/mdhost/ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2008-02-15 Geoff Norton <gnorton@novell.com>
2+
3+
* src/mdhost.cs: Disable .NET remoting security on Tcp channels.
4+
15
2007-12-13 Lluis Sanchez Gual <lluis@novell.com>
26

37
* src/mdhost.cs: Fix warnings.

main/src/tools/mdhost/src/mdhost.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,12 @@ public static int Main (string[] args)
5959
Hashtable props = new Hashtable ();
6060
props ["port"] = 0;
6161
props ["name"] = "__internal_tcp";
62-
ChannelServices.RegisterChannel (new TcpChannel (props, null, null), false);
62+
BinaryClientFormatterSinkProvider clientProvider = new BinaryClientFormatterSinkProvider();
63+
BinaryServerFormatterSinkProvider serverProvider = new BinaryServerFormatterSinkProvider();
64+
65+
serverProvider.TypeFilterLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
66+
67+
ChannelServices.RegisterChannel (new TcpChannel (props, clientProvider, serverProvider), false);
6368
}
6469

6570
string sref = Console.In.ReadLine ();

0 commit comments

Comments
 (0)