Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-vpn
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
Container 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Merlin
bitmask-vpn
Commits
b093455d
Unverified
Commit
b093455d
authored
4 years ago
by
Kali Kaneko
Browse files
Options
Downloads
Patches
Plain Diff
[feat] write port in darwin too
parent
d46ac15f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/helper/darwin.go
+5
-2
5 additions, 2 deletions
pkg/helper/darwin.go
with
5 additions
and
2 deletions
pkg/helper/darwin.go
+
5
−
2
View file @
b093455d
...
...
@@ -87,8 +87,11 @@ func daemonize() {
log
.
Print
(
"bitmask-helper daemon started"
)
}
func
doHandleCommands
(
port
int
)
{
runCommandServer
(
"localhost:"
+
strconv
.
Itoa
(
port
))
func
doHandleCommands
(
preferredPort
int
)
{
port
:=
getFirstAvailablePortFrom
(
preferredPort
)
writePortToFile
(
port
)
bindAddr
:=
"localhost:"
+
strconv
.
Itoa
(
port
)
runCommandServer
(
bindAddr
)
}
func
getOpenvpnPath
()
string
{
...
...
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