![]() The piapy software is a personal project. Please make sure to update tests as appropriate. Please open an issue first to discuss what you would like to change. with private, non-routable IP addresses on your network to access the Internet. connect ( verbose = True, timeout = 20 ) # Disconnect vpn. All modern Linux firewall solutions use this system for packet filtering. status () # equivalent to `piactl get connectionstate` # Will connect to server, displaying status in stdout vpn. Set_debug_logging(value=False) Enable client debug logging.Įxample from piapy import PiaVpn # Instantiate vpn = PiaVpn () # Get connection status vpn. As per the documentation this only resets daemon settings, no GUI settings. Reset_settings() Resets settings to the defaults. Status() Returns client conection status.ĭisconnected, Connecting, StillConnecting, Connected, Interrupted, Reconnecting, StillReconnecting, DisconnectingToReconnect, Disconnecting Ip() Returns the current VPN IP address, if connected and the address is known
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |