@@ -10,7 +10,7 @@ namespace MLAPI
10
10
public class NetworkingConfiguration
11
11
{
12
12
public ushort ProtocolVersion = 0 ;
13
- public Dictionary < string , QosType > Channels = new Dictionary < string , QosType > ( ) ;
13
+ public SortedDictionary < string , QosType > Channels = new SortedDictionary < string , QosType > ( ) ;
14
14
public List < string > MessageTypes = new List < string > ( ) ;
15
15
public int MessageBufferSize = 65535 ;
16
16
public int MaxMessagesPerFrame = 150 ;
@@ -19,16 +19,16 @@ public class NetworkingConfiguration
19
19
public string Address = "127.0.0.1" ;
20
20
public int ClientConnectionBufferTimeout = 10 ;
21
21
public bool ConnectionApproval = false ;
22
- public Action < byte [ ] , int , Action < int , bool > > ConnectionApprovalCallback ;
23
- public byte [ ] ConnectionData ;
22
+ public Action < byte [ ] , int , Action < int , bool > > ConnectionApprovalCallback = null ;
23
+ public byte [ ] ConnectionData = new byte [ 0 ] ;
24
24
public bool HandleObjectSpawning = true ;
25
25
//TODO
26
26
public bool CompressMessages = false ;
27
27
//Should only be used for dedicated servers and will require the servers RSA keypair being hard coded into clients in order to exchange a AES key
28
28
//TODO
29
29
public bool EncryptMessages = false ;
30
- public bool UseUPnP = true ;
31
- public Action < bool , IPAddress > UPnPCompleteCallback ;
30
+ public bool UseUPnP = false ;
31
+ public Action < bool , IPAddress > UPnPCompleteCallback = null ;
32
32
33
33
//Cached config hash
34
34
private byte [ ] ConfigHash = null ;
0 commit comments