Creates a new Config instance and initializes it with the provided options.
The native addon instance.
Optional
options: PinggyOptions = {}The tunnel configuration options.
Gets the current argument string for the tunnel configuration.
The argument string, or null if unavailable.
Gets the current force configuration setting.
The force setting, or null if unavailable.
Gets the current server address.
The server address, or null if unavailable.
Gets the current SNI server name.
The SNI server name, or null if unavailable.
Gets the current authentication token.
The authentication token, or null if unavailable.
Prepares and sets the argument string for the native config, based on options.
The native config reference.
The tunnel configuration options.
Sets the force configuration for the tunnel. When enabled, forces the tunnel to use specific settings or bypass certain restrictions.
Whether to enable force mode.
Sets the server address for the tunnel.
Optional
address: string = "a.pinggy.io:443"The server address.
Sets the authentication token for the tunnel.
The authentication token.
Represents the configuration for a Pinggy tunnel. Handles setting up and managing tunnel options and arguments for the native addon.