Skip to main content

IsNetworkingAllowed

This function was added in DSL 5

Description​

Check if networking is allowed in the user's DSL config.

function IsNetworkingAllowed() --[[ ... ]] end

Parameters​

None.

Return Values​

  • allowed: boolean - true if networking is enabled in the user's DSL config, otherwise false.

Example​

if IsNetworkingAllowed() then
print('Networking is allowed in the DSL config.')
else
print('Networking is not allowed in the DSL config.')
end