( ctx context.Context )
| 284 | func ( 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 | |
| 290 | func ( c *Client ) FetchCategoryList( ctx context.Context ) ( err error ) { |
| 291 | c.Config.Port = 443 |
| 292 | c.Config.CA = "" |
| 293 |