Skip to content

Feature/wg mobile side - #591

Merged
tadovas merged 11 commits into
masterfrom
feature/wg-mobile-side
Dec 7, 2018
Merged

Feature/wg mobile side#591
tadovas merged 11 commits into
masterfrom
feature/wg-mobile-side

Conversation

@tadovas

@tadovas tadovas commented Nov 30, 2018

Copy link
Copy Markdown
Contributor
  • Add skeleton for wg tunnel setup for mobile side
  • Enable userspace wg usage in oses other than linux (darwin, win etc.)

Comment thread mobile/mysterium/wireguard_connection_setup.go Outdated
Comment thread mobile/mysterium/wireguard_connection_setup.go Outdated
Comment thread mobile/mysterium/wireguard_connection_setup.go Outdated
}

func (wg *wireguardConnection) doInit() error {
wg.closed.Add(1)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are adding 1 to closed in the init func. Something wrong with naming here. Maybe it should be active instead of closed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how WaitGroup works, this group expresses everything stopped condition. So yes add 1 is at init. Done is where shutdown completes. Renamed to stopCompleted if it makes more sense, but for me personally it's just cosmetics

Comment thread mobile/mysterium/wireguard_connection_setup.go Outdated
Comment thread mobile/mysterium/wireguard_connection_setup.go
Comment thread cmd/commands/service/serviceTypes_linux.go Outdated
Comment thread mobile/mysterium/wireguard_connection_setup.go Outdated
Comment thread mobile/mysterium/wireguard_connection_setup.go Outdated
Comment thread mobile/mysterium/wireguard_connection_setup.go Outdated

@zolia zolia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small issues

Comment thread Gopkg.toml Outdated
Comment thread cmd/commands/service/serviceTypes_linux.go Outdated
Comment thread mobile/mysterium/wireguard_connection_setup.go Outdated
Comment thread mobile/mysterium/wireguard_connection_setup.go
@tadovas
tadovas force-pushed the feature/wg-mobile-side branch from 314f75c to fd5332b Compare December 4, 2018 11:41
@tadovas
tadovas force-pushed the feature/wg-mobile-side branch 7 times, most recently from 7d31d3c to 2d8dc92 Compare December 6, 2018 09:52
Comment thread mobile/mysterium/wireguard_connection_setup.go Outdated
Comment thread mobile/mysterium/wireguard_connection_setup.go Outdated
RemoteEndpoint: parsed,
KeepAlivePeriod: 60,
//all traffic through this peer (unfortunatelly 0.0.0.0/0 didn't work as it was treated as ipv6)
AllowedIPs: []string{"0.0.0.0/1", "128.0.0.0/1"},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should be arbitrary modifiable. We should be getting those from a user somewhere.

@tadovas tadovas Dec 7, 2018

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the long perspective - maybe. At the moment - I don't think it's worth the effort.

@tadovas
tadovas force-pushed the feature/wg-mobile-side branch from 8a55047 to 8cf24b3 Compare December 7, 2018 08:59
@tadovas
tadovas merged commit c697b70 into master Dec 7, 2018
@tadaskay
tadaskay deleted the feature/wg-mobile-side branch July 5, 2021 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants