mirror of
https://github.com/davegallant/vpngate.git
synced 2025-08-06 08:43:40 +00:00
Add arm/arm64 to goreleaser (#49)
Cryptic error (goreleaser/goreleaser#2389) was caused by not publishing arm64 architecture.
This commit is contained in:
@@ -14,6 +14,8 @@ builds:
|
|||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
|
- arm
|
||||||
|
- arm64
|
||||||
archives:
|
archives:
|
||||||
- replacements:
|
- replacements:
|
||||||
darwin: Darwin
|
darwin: Darwin
|
||||||
|
48
README.md
48
README.md
@@ -4,12 +4,12 @@ This is a client for [vpngate.net](https://www.vpngate.net/).
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
This client fetches the list of available relay servers provided by vpngate.net.
|
This client fetches the list of available relay servers provided by vpngate.net, and allows you to filter and connect to a server of your liking.
|
||||||
|
|
||||||
You can check out your current IP address and region at https://nordvpn.com/what-is-my-ip/, or simply run the following command in a terminal:
|
You can check out your current IP address and region at https://nordvpn.com/what-is-my-ip/, or simply run the following command in a terminal:
|
||||||
|
|
||||||
```console
|
```shell
|
||||||
$ curl ipinfo.io
|
curl ipinfo.io
|
||||||
```
|
```
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
@@ -19,69 +19,75 @@ $ curl ipinfo.io
|
|||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
|
The simplest method of installation is using homebrew. You can also build from source.
|
||||||
|
|
||||||
### homebrew
|
### from homebrew
|
||||||
|
|
||||||
vpngate can be installed with [homebrew](https://brew.sh/):
|
vpngate can be installed with [homebrew](https://brew.sh/):
|
||||||
|
|
||||||
```sh
|
```shell
|
||||||
|
# Ensure that Xcode is installed
|
||||||
|
sudo xcode-select --install
|
||||||
|
|
||||||
|
# OpenVPN is required
|
||||||
brew install openvpn
|
brew install openvpn
|
||||||
|
|
||||||
brew install davegallant/public/vpngate
|
brew install davegallant/public/vpngate
|
||||||
```
|
```
|
||||||
|
|
||||||
### source
|
### from source
|
||||||
|
|
||||||
Ensure that [go](https://golang.org/doc/install) is installed.
|
Ensure that [go](https://golang.org/doc/install) is installed.
|
||||||
|
|
||||||
```console
|
```shell
|
||||||
$ CGO_ENABLED=0 go get github.com/davegallant/vpngate
|
CGO_ENABLED=0 go get github.com/davegallant/vpngate
|
||||||
```
|
```
|
||||||
|
|
||||||
Ensure that the go bin path is discoverable:
|
Ensure that the go bin path is discoverable:
|
||||||
|
|
||||||
```console
|
```shell
|
||||||
$ echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.profile
|
echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.profile
|
||||||
$ source ~/.profile
|
source ~/.profile
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### List available servers
|
### List available servers
|
||||||
|
|
||||||
```console
|
```shell
|
||||||
$ vpngate list
|
vpngate list
|
||||||
```
|
```
|
||||||
|
|
||||||
### Connect to a server
|
### Connect to a server
|
||||||
|
|
||||||
On macOS, `openvpn` may not be within your PATH. To fix this, run:
|
On macOS, `openvpn` may not be within your PATH. To fix this, run:
|
||||||
|
|
||||||
```console
|
```shell
|
||||||
$ export PATH=$(brew --prefix openvpn)/sbin:$PATH
|
export PATH=$(brew --prefix openvpn)/sbin:$PATH
|
||||||
```
|
```
|
||||||
|
|
||||||
The above command can also be added to a bash/zsh profile for future use.
|
The above command can also be added to a bash/zsh profile for future use.
|
||||||
|
|
||||||
Because openvpn creates a network interface, run the connect command with `sudo` or a user with escalated privileges.
|
Because openvpn creates a network interface, run the connect command with `sudo` or a user with escalated privileges.
|
||||||
|
|
||||||
```console
|
```shell
|
||||||
$ sudo vpngate connect
|
sudo vpngate connect
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Random
|
#### Random
|
||||||
|
|
||||||
If the country doesn't matter, a random server can be selected:
|
If the country doesn't matter, a random server can be selected:
|
||||||
|
|
||||||
```console
|
```shell
|
||||||
$ sudo vpngate connect --random
|
sudo vpngate connect --random
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Reconnect
|
#### Reconnect
|
||||||
|
|
||||||
To continually attempt to reconnect (this can be combined with `--random`):
|
To continually attempt to reconnect (this can be combined with `--random`):
|
||||||
|
|
||||||
```console
|
```shell
|
||||||
$ sudo vpngate connect --reconnect
|
sudo vpngate connect --reconnect
|
||||||
```
|
```
|
||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
Reference in New Issue
Block a user