new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Electron · API · all subjects

web-contents/webrtc

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

contents.getWebRTCIPHandlingPolicy() - get WebRTC IP policy

Returns string - returns the WebRTC IP Handling Policy.

contents.setWebRTCIPHandlingPolicy(policy) - set WebRTC IP policy

Setting the WebRTC IP handling policy allows you to control which IPs are exposed via WebRTC. Parameters: policy (string) - specify the WebRTC IP Handling Policy. Valid values: 'default' - exposes user's public and local IPs (default behavior); when this policy is used, WebRTC has the right to enumerate all interfaces and bind them to discover public interfaces, 'default_public_interface_only' - exposes user's public IP but not user's local IP; when used, WebRTC should only use the default route used by http, 'default_public_and_private_interfaces' - exposes user's public and local IPs; when used, WebRTC should only use the default route used by http and also exposes the associated default private address, 'disable_non_proxied_udp' - does not expose public or local IPs; when used, WebRTC should only use TCP to contact peers or servers unless the proxy server supports UDP.

contents.getWebRTCUDPPortRange() - get WebRTC UDP port range

Returns Object with min (Integer) - the minimum UDP port number that WebRTC should use and max (Integer) - the maximum UDP port number that WebRTC should use. By default this value is { min: 0, max: 0 }, which would apply no restriction on the udp port range.

contents.setWebRTCUDPPortRange(udpPortRange) - set WebRTC UDP port range

Setting the WebRTC UDP Port Range allows you to restrict the udp port range used by WebRTC. By default the port range is unrestricted. To reset to an unrestricted port range this value should be set to { min: 0, max: 0 }. Parameters: udpPortRange (Object) with min (Integer) - the minimum UDP port number that WebRTC should use and max (Integer) - the maximum UDP port number that WebRTC should use.

Give your agent this brain