diff --git a/servefile b/servefile index bcac290..105f763 100755 --- a/servefile +++ b/servefile @@ -994,10 +994,14 @@ def main(): print("Error: Maximum upload size can only be specified when in upload mode.") sys.exit(1) + if args.upload and args.list_dir: + print("Error: Upload and dirlisting can't be enabled together.") + sys.exit(1) + if args.max_upload_size: sizeRe = re.match("^(\d+(?:[,.]\d+)?)(?:([bkmgtpe])(?:(?