MCPcopy Create free account
hub / github.com/eventure/hide.client.linux / EnablePortForwarding

Method EnablePortForwarding

rest/client.go:286–290  ·  view source on GitHub ↗
( ctx context.Context )

Source from the content-addressed store, hash-verified

284func ( c *Client ) EnablePortForwarding( ctx context.Context ) ( err error ) {
285 response, err := c.postJson( ctx, "https://10.255.255.250:4321/upnp", c.Config.PortForward )
286 if string(response) == "false" { err = errors.New( "port-forwarding failed" ) }
287 return
288}
289
290func ( c *Client ) FetchCategoryList( ctx context.Context ) ( err error ) {
291 c.Config.Port = 443
292 c.Config.CA = ""
293

Callers 1

PortForwardMethod · 0.80

Calls 1

postJsonMethod · 0.95

Tested by

no test coverage detected