Skip to content
Snippets Groups Projects
Verified Commit 8dad1a95 authored by Pea Nut's avatar Pea Nut
Browse files

Fix call to obfsvpn.client.NewClient()

parent ad7c0930
No related branches found
No related tags found
2 merge requests!8Add support to specify API port + if we want to use TLS - leap namespace pipelines,!4Add support to specify API port + if we want to use TLS
...@@ -9,14 +9,15 @@ import ( ...@@ -9,14 +9,15 @@ import (
var LocalProxyAddr = "127.0.0.1:8080" var LocalProxyAddr = "127.0.0.1:8080"
// StartLocalProxy will start a local proxy using the obfsvpn client. // StartLocalProxy will start a local proxy using the obfsvpn client.
func StartLocalProxy(remoteaddr, cert string) error { func StartLocalProxy(remoteaddr, obfs4Cert string) error {
ctx := context.Background() ctx := context.Background()
// TODO make cancellable // TODO make cancellable
c := client.NewClient( c := client.NewClient(
ctx, false, ctx,
false,
LocalProxyAddr, // fixed for now, but should make configurable LocalProxyAddr, // fixed for now, but should make configurable
remoteaddr, cert, obfs4Cert,
) )
if _, err := c.Start(); err != nil { if _, err := c.Start(); err != nil {
return err return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment