TsgcSTUNServer › Properties › STUNOptions
服务器端 STUN 选项:FINGERPRINT、SOFTWARE、认证以及添加到绑定响应中的属性。
property STUNOptions: TsgcSTUNServer_Options read FSTUNOptions write SetSTUNOptions;
—
控制服务器的 STUN 协议行为:
LongTermCredentials 并设置其 Realm 和 StaleNonce 以激活长期凭据机制(RFC 5389 第 10.2 节);每个用户的实际密码通过 OnSTUNRequestAuthorization 事件提供。oSTUN.STUNOptions.Fingerprint := True;
oSTUN.STUNOptions.Software := True;
oSTUN.STUNOptions.Authentication.Enabled := True;
oSTUN.STUNOptions.Authentication.LongTermCredentials.Enabled := True;
oSTUN.STUNOptions.Authentication.LongTermCredentials.Realm := 'sgc';
oSTUN.Active := True;