diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-30 17:00:32 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-30 17:00:32 +0200 |
commit | 98be591b3c0bff65a2555ec1648bfa8bf79cfc22 (patch) | |
tree | c9a376f293b0e2146fb8101bd44f2bfd72a9f1c4 /main.go | |
parent | 871a8e05ec2adfebbe42cbb911c1f0a528d15794 (diff) |
Replace -allow-connect and -allow-accept with -allow-net
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -15,27 +15,23 @@ var flagV8Options = flag.Bool("v8-options", false, "Print V8 command line option var flagDebug = flag.Bool("debug", false, "Enable debug output.") var flagGoProf = flag.String("goprof", "", "Write golang cpu profile to file.") -var flagAllowWrite = flag.Bool("allow-write", false, - "Allow program to write to the fs.") -var flagAllowConnect = flag.Bool("allow-connect", false, - "Allow program to connect to other network addresses.") -var flagAllowAccept = flag.Bool("allow-accept", false, - "Allow program to accept connections.") var flagAllowRead = flag.Bool("allow-read", true, "Allow program to read file system.") +var flagAllowWrite = flag.Bool("allow-write", false, + "Allow program to write to the fs.") +var flagAllowNet = flag.Bool("allow-net", false, + "Allow program to make network connection.") var Perms struct { FsRead bool FsWrite bool - Connect bool - Accept bool + Net bool } func setPerms() { Perms.FsRead = *flagAllowRead Perms.FsWrite = *flagAllowWrite - Perms.Connect = *flagAllowConnect - Perms.Accept = *flagAllowAccept + Perms.Net = *flagAllowNet } func stringAsset(path string) string { |