import (
"flag"
+ "fmt"
"log"
"net"
"os"
encless = flag.Bool("encless", false, "Encryptionless mode")
cpr = flag.Int("cpr", 0, "Enable constant KiB/sec out traffic rate")
egdPath = flag.String("egd", "", "Optional path to EGD socket")
+ warranty = flag.Bool("warranty", false, "Print warranty information")
conf *govpn.PeerConf
tap *govpn.TAP
func main() {
flag.Parse()
+ if *warranty {
+ fmt.Println(govpn.Warranty)
+ return
+ }
timeout = *timeoutP
var err error
log.SetFlags(log.Ldate | log.Lmicroseconds | log.Lshortfile)
import (
"flag"
+ "fmt"
"log"
"net"
"os"
stats = flag.String("stats", "", "Enable stats retrieving on host:port")
proxy = flag.String("proxy", "", "Enable HTTP proxy on host:port")
egdPath = flag.String("egd", "", "Optional path to EGD socket")
+ warranty = flag.Bool("warranty", false, "Print warranty information")
)
func main() {
flag.Parse()
+ if *warranty {
+ fmt.Println(govpn.Warranty)
+ return
+ }
timeout := time.Second * time.Duration(govpn.TimeoutDefault)
log.SetFlags(log.Ldate | log.Lmicroseconds | log.Lshortfile)
log.Println(govpn.VersionGet())
tOpt = flag.Int("t", govpn.DefaultT, "Argon2d iteration parameter")
pOpt = flag.Int("p", govpn.DefaultP, "Argon2d parallelizm parameter")
egdPath = flag.String("egd", "", "Optional path to EGD socket")
+ warranty = flag.Bool("warranty", false, "Print warranty information")
)
func main() {
flag.Parse()
+ if *warranty {
+ fmt.Println(govpn.Warranty)
+ return
+ }
if *egdPath != "" {
govpn.EGDInit(*egdPath)
}
// Simple secure, DPI/censorship-resistant free software VPN daemon.
package govpn
+
+const (
+ Warranty = `This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.`
+)