You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// List of MessageTypes that can be passed through by Server. MessageTypes in this list should thus not be trusted to as great of an extent as normal messages.
/// The data to send during connection which can be used to decide on if a client should get accepted
85
+
/// </summary>
29
86
publicbyte[]ConnectionData=newbyte[0];
87
+
/// <summary>
88
+
/// The amount of seconds to keep a lag compensation position history
89
+
/// </summary>
30
90
publicfloatSecondsHistory=5;
91
+
/// <summary>
92
+
/// Wheter or not to make the library handle object spawning
93
+
/// </summary>
31
94
publicboolHandleObjectSpawning=true;
32
-
95
+
/// <summary>
96
+
/// Wheter or not to enable encryption
97
+
/// </summary>
33
98
publicboolEnableEncryption=true;
99
+
/// <summary>
100
+
/// Wheter or not to enable signed diffie hellman key exchange.
101
+
/// </summary>
34
102
publicboolSignKeyExchange=true;
103
+
/// <summary>
104
+
/// Private RSA XML key to use for signing key exchange
105
+
/// </summary>
35
106
publicstringRSAPrivateKey="<RSAKeyValue><Modulus>vBEvOQki/EftWOgwh4G8/nFRvcDJLylc8P7Dhz5m/hpkkNtAMzizNKYUrGbs7sYWlEuMYBOWrzkIDGOMoOsYc9uCi+8EcmNoHDlIhK5yNfZUexYBF551VbvZ625LSBR7kmBxkyo4IPuA09fYCHeUFm3prt4h6aTD0Hjc7ZsJHUU=</Modulus><Exponent>EQ==</Exponent><P>ydgcrq5qLJOdDQibD3m9+o3/dkKoFeCC110dnMgdpEteCruyBdL0zjGKKvjjgy3XTSSp43EN591NiXaBp0JtDw==</P><Q>7obHrUnUCsSHUsIJ7+JOrupcGrQ0XaYcQ+Uwb2v7d2YUzwZ46U4gI9snfD2J0tc3DGEh3v3G0Q8q7bxEe3H4aw==</Q><DP>L34k3c6vkgSdbHp+1nb/hj+HZx6+I0PijQbZyolwYuSOmR0a1DGjA1bzVWe9D86NAxevgM9OkOjG8yrxVIgZqQ==</DP><DQ>OB+2gyBuIKa2bdNNodrlVlVC2RtXnZB/HwjAGjeGdnJfP8VJoE6eJo3rLEq3BG7fxq1xYaUfuLhGVg4uOyngGQ==</DQ><InverseQ>o97PimYu58qH5eFmySRCIsyhBr/tK2GM17Zd9QQPJZRSorrhIJn1m6gwQ/G5aJLIM/3Yl04CoyqmQGsPXMzW2w==</InverseQ><D>CxAR1i22w4vCquB7U0Pd8Nl9R2Wxez6rHTwpnoszPB+rkAzlqKj7e5FMgpykhoQfciKPyWqQZKkAeTMIRbN56JinvpAt5POId/28HDd5xjGymHE81k3RzoHqzQXFIOF1TSYKUWzjPPF/TU4nn7auD4i6lOODATsMqtLr5DRBN/0=</D></RSAKeyValue>";//CHANGE THESE FOR PRODUCTION!
107
+
/// <summary>
108
+
/// Public RSA XML key to use for signing key exchange
109
+
/// </summary>
36
110
publicstringRSAPublicKey="<RSAKeyValue><Modulus>vBEvOQki/EftWOgwh4G8/nFRvcDJLylc8P7Dhz5m/hpkkNtAMzizNKYUrGbs7sYWlEuMYBOWrzkIDGOMoOsYc9uCi+8EcmNoHDlIhK5yNfZUexYBF551VbvZ625LSBR7kmBxkyo4IPuA09fYCHeUFm3prt4h6aTD0Hjc7ZsJHUU=</Modulus><Exponent>EQ==</Exponent></RSAKeyValue>";//CHANGE THESE FOR PRODUCTION!
37
-
111
+
/// <summary>
112
+
/// Wheter or not to allow any type of passthrough messages
113
+
/// </summary>
38
114
publicboolAllowPassthroughMessages=true;
115
+
/// <summary>
116
+
/// Wheter or not to enable scene switching
117
+
/// </summary>
39
118
publicboolEnableSceneSwitching=false;
40
119
41
120
//Cached config hash
42
121
privatebyte[]ConfigHash=null;
122
+
123
+
/// <summary>
124
+
/// Gets a SHA256 hash of parts of the NetworkingConfiguration instance
125
+
/// </summary>
126
+
/// <param name="cache"></param>
127
+
/// <returns></returns>
43
128
publicbyte[]GetConfig(boolcache=true)
44
129
{
45
130
if(ConfigHash!=null&&cache)
@@ -92,6 +177,11 @@ public byte[] GetConfig(bool cache = true)
92
177
}
93
178
}
94
179
180
+
/// <summary>
181
+
/// Compares a SHA256 hash with the current NetworkingConfiguration instances hash
0 commit comments