Documentation ¶
Index ¶
Constants ¶
View Source
const USTBVpnHost = "n.ustb.edu.cn"
View Source
const USTBVpnHttpScheme = "http"
View Source
const USTBVpnHttpsScheme = "https"
View Source
const USTBVpnWSSScheme = "wss"
View Source
const USTBVpnWSScheme = "ws"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AesEncrypt ¶
type AesEncrypt struct {
// contains filtered or unexported fields
}
type AutoLogin ¶
type AutoLogin struct { Host string ForceLogout bool SSLEnabled bool // the vpn server supports https // contains filtered or unexported fields }
func (*AutoLogin) LogoutAddr ¶
func (*AutoLogin) NewHttpClient ¶ added in v0.6.0
func (al *AutoLogin) NewHttpClient(force bool, checkRedirect func(req *http.Request, via []*http.Request) error) *http.Client
create http request client with SSLEnabled and skipTLSVerify as config checkRedirect will be passed into http.Client as CheckRedirect func if it is specified. If force is true, it will enable "InsecureSkipVerify" forcely even if current connection is under http (may be redirected to https)
type AutoLoginInterface ¶
type UstbVpn ¶
type UstbVpn struct { Enable bool Username string Password string TargetVpn string HostEncrypt bool ForceLogout bool ConnOptions plugin.Options // normal connection options }
func NewUstbVpnCli ¶ added in v0.5.0
func NewUstbVpnCli() *UstbVpn
create a UstbVpn instance, and add necessary command options to client sub-command.
Click to show internal directories.
Click to hide internal directories.