diff options
Diffstat (limited to 'OpenSim/Region/Communications/OGS1')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs index 0150e36..5d38b83 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | |||
@@ -499,8 +499,17 @@ namespace OpenSim.Region.Communications.OGS1 | |||
499 | /// </summary> | 499 | /// </summary> |
500 | private void StartRemoting() | 500 | private void StartRemoting() |
501 | { | 501 | { |
502 | TcpChannel ch = new TcpChannel((int) NetworkServersInfo.RemotingListenerPort); | 502 | TcpChannel ch; |
503 | ChannelServices.RegisterChannel(ch, false); // Disabled security as Mono doesnt support this. | 503 | try |
504 | { | ||
505 | ch = new TcpChannel((int)NetworkServersInfo.RemotingListenerPort); | ||
506 | ChannelServices.RegisterChannel(ch, false); // Disabled security as Mono doesnt support this. | ||
507 | } | ||
508 | catch (Exception ex) | ||
509 | { | ||
510 | m_log.Error("Exception while attempting to listen on TCP port " + (int)NetworkServersInfo.RemotingListenerPort + "."); | ||
511 | throw (ex); | ||
512 | } | ||
504 | 513 | ||
505 | WellKnownServiceTypeEntry wellType = | 514 | WellKnownServiceTypeEntry wellType = |
506 | new WellKnownServiceTypeEntry(typeof (OGS1InterRegionRemoting), "InterRegions", | 515 | new WellKnownServiceTypeEntry(typeof (OGS1InterRegionRemoting), "InterRegions", |