ProtoFlux:Is Host Access Allowed: Difference between revisions

From Resonite Wiki
Created a page for the Is Host Access Alowed node.
 
Added some notes on the scope overriding the url protocol.
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:
|}}
|}}


The <code>Is Host Access Allowed</code> node takes in a host IP address, an accessable 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 servce. This relates to the [[Settings#Security|settings]] in the [[Dash]] that a user can look through to see what services they have access to.
The <code>Is Host Access Allowed</code> 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#Security|settings]] in the [[Dash]] that a user can look through to see what services they have access to.


{{Note|This node is useful for allowing you to interchange the host and port separatly, but if you want to just have the Uri version for convience, use [[ProtoFlux:Is Host Access Allowed Url|Is Host Access Allowed Url]] instead.|suggestion}}
{{Note|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 [[ProtoFlux:Is Host Access Allowed Url|Is Host Access Allowed Url]] instead.|suggestion}}
 
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 <code>https://</code> or <code>ws://</code>.


== Inputs ==
== Inputs ==
Line 26: Line 28:
=== Port ([[Type:int|int]]) ===
=== Port ([[Type:int|int]]) ===


The port number used to access this IP address.
The Port Number used to access this IP address.


=== Scope ([[Type:HostAccessScope|HostAccessScope]]) ===
=== Scope ([[Type:HostAccessScope|HostAccessScope]]) ===
Line 36: Line 38:
=== * ([[Type:bool|bool]]) ===
=== * ([[Type:bool|bool]]) ===


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


[[Category:ProtoFlux:Network]]
[[Category:ProtoFlux:Network]]

Latest revision as of 23:48, 19 May 2024

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.