Skip to content

Commit

Permalink
separate call to openvpn.Bootstrap()
Browse files Browse the repository at this point in the history
  • Loading branch information
zolia committed Dec 3, 2018
1 parent e9948d7 commit 13ab5f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mobile/mysterium/openvpn_connection_setup.go
Expand Up @@ -121,6 +121,7 @@ func (st *sessionTracker) handleState(stateEvent connection.StateEvent) {

// OverrideOpenvpnConnection replaces default openvpn connection factory with mobile related one returning session that can be reconnected
func (mobNode *MobileNode) OverrideOpenvpnConnection(tunnelSetup Openvpn3TunnelSetup) ReconnectableSession {
openvpn.Bootstrap()

st := &sessionTracker{}

Expand Down
2 changes: 1 addition & 1 deletion services/openvpn/bootstrap.go
Expand Up @@ -27,7 +27,7 @@ import (
// ServiceType indicates "openvpn" service type
const ServiceType = "openvpn"

// Bootstrap is called on program initialization time and registers various deserializers related to opepnvpn service
// Bootstrap is called on program initialization time and registers various deserializers related to OpenVPN service
func Bootstrap() {
dto_discovery.RegisterServiceDefinitionUnserializer(
ServiceType,
Expand Down

0 comments on commit 13ab5f6

Please sign in to comment.