Report a couple of options that are incompatible with --awsvpc

This commit is contained in:
Bryan Boreham committed 2016-06-13 16:53:27 +01:00
1 parent 7a1bd27a58
commit b32da8d69f
2 files changed
+8

No files matched your search

+4
View File
@@ -268,6 +268,10 @@ func main() {
config.TrustedSubnets = parseTrustedSubnets(trustedSubnetStr)
config.PeerDiscovery = !noDiscovery
if isAWSVPC && len(config.Password) > 0 {
Log.Fatalf("--awsvpc mode is not compatible with the --password option")
}
db, err := db.NewBoltDB(dbPrefix + "data.db")
checkFatal(err)
defer db.Close()
+4
View File
@@ -1608,6 +1608,10 @@ launch_router() {
exit 1
fi
else
if [ -n "$AWSVPC" -a -z "$IPRANGE" ] ; then
echo "ERROR: Empty --ipalloc-range is not compatible with --awsvpc." >&2
exit 1
fi
if [ -n "$IPRANGE" ] && ! check_overlap $IPRANGE ; then
echo "WARNING: Specified --ipalloc-range $IPRANGE overlaps with existing route on host." >&2
echo "Unless this is deliberate, you must pick another range and set it on all hosts." >&2