Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bitmask-core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
bitmask-core
Commits
8dad1a95
Verified
Commit
8dad1a95
authored
Mar 25, 2024
by
Pea Nut
Browse files
Options
Downloads
Patches
Plain Diff
Fix call to obfsvpn.client.NewClient()
parent
ad7c0930
No related branches found
No related tags found
2 merge requests
!8
Add support to specify API port + if we want to use TLS - leap namespace pipelines
,
!4
Add support to specify API port + if we want to use TLS
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/localproxy/localproxy.go
+4
-3
4 additions, 3 deletions
pkg/localproxy/localproxy.go
with
4 additions
and
3 deletions
pkg/localproxy/localproxy.go
+
4
−
3
View file @
8dad1a95
...
@@ -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
,
c
ert
string
)
error
{
func
StartLocalProxy
(
remoteaddr
,
obfs4C
ert
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
,
c
ert
,
obfs4C
ert
,
)
)
if
_
,
err
:=
c
.
Start
();
err
!=
nil
{
if
_
,
err
:=
c
.
Start
();
err
!=
nil
{
return
err
return
err
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment