ProtoFlux:Is Host Access Allowed

From Resonite Wiki
Revision as of 23:48, 19 May 2024 by AmasterAmaster (talk | contribs) (Added some notes on the scope overriding the url protocol.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Is Host Access Allowed
Host
*
Port
Scope
Network

The Is Host Access Allowed node takes in a Host IP address, an accessible port of that address, and the scope of what type of connection this is. When everything is accurate, this node will return if the user has the host access to a service. This relates to the settings in the Dash that a user can look through to see what services they have access to.

This node is useful for allowing you to interchange the host and port separately, but if you want to just have the Uri version for convenience, use Is Host Access Allowed Url instead.

If you provide a scheme (also called a protocol) inside the host string, it will be overridden by the scope every time, as the scope takes priority to determine the type of the network connection. A scheme looks like https:// or ws://.

Inputs

Host (string)

The IP address to connect to.

Port (int)

The Port Number used to access this IP address.

Scope (HostAccessScope)

The access type used for this network connection.

Outputs

* (bool)

The result if this local user has access to the service connected using the exact IP address (Host), Port number, and correct connection type.