Skip to content
Snippets Groups Projects
Unverified Commit b093455d authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[feat] write port in darwin too

parent d46ac15f
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment