Description Fires when user wants to connect to
listening channel.
Syntax
Private Sub object_UserConnecting(Chan, Hostname, Port, Allow)
The UserConnecting Event syntax has these parts:
|
object | A wodVPN object. | Chan | A VPNChannel
object. Reference to used channel. | Hostname |
A String value. Originating hostname/IP address of the user. | Port |
A Long value. Originating port of the user. | Allow |
A Boolean value. When set to False, wodVPN aborts the connection. |
Remarks UserConnecting event is fired when someone
wants to connect to wodVPN, but before they can actually transmit any
data. At this point, you can decide whether you want to allow the user
to use the channel or not.
Typically, based on user's Hostname and originating Port,
you can see if that is expected connection or not. As there is no way to
hide listening sockets from disallowed users, they will still try to
connect, but you can immediately disconnect them through this event.
|