... | ... |
@@ -127,22 +127,13 @@ class Nord extends React.Component { |
127 | 127 |
} |
128 | 128 |
|
129 | 129 |
connect(geography) { |
130 |
- const country_info = geography.properties ; |
|
131 |
-// this.setState({ |
|
132 |
-// status: VPN.connecting, |
|
133 |
-// country: country_info.NAME, |
|
134 |
-// host: null, |
|
135 |
-// }) ; |
|
136 |
- |
|
137 | 130 |
this.connection.send(JSON.stringify({ |
138 | 131 |
method: 'connect', |
139 |
- country: country_info.ISO_A2 |
|
132 |
+ country: geography.properties.ISO_A2 |
|
140 | 133 |
})) ; |
141 | 134 |
} |
142 | 135 |
|
143 | 136 |
disconnect() { |
144 |
-// this.setState((prev) => ({ ...prev, status: VPN.disconnecting })) ; |
|
145 |
- |
|
146 | 137 |
this.connection.send(JSON.stringify({ |
147 | 138 |
method: 'disconnect' |
148 | 139 |
})) ; |