mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Remove memory and port selection (for now)
This commit is contained in:
parent
7ef40be77c
commit
6afa8a5b33
@ -633,15 +633,6 @@ class ServerHandler(BaseHandler):
|
|||||||
user_roles = self.get_user_roles()
|
user_roles = self.get_user_roles()
|
||||||
app_id = bleach.clean(self.get_argument("steam_server", ""))
|
app_id = bleach.clean(self.get_argument("steam_server", ""))
|
||||||
server_name = bleach.clean(self.get_argument("server_name", ""))
|
server_name = bleach.clean(self.get_argument("server_name", ""))
|
||||||
min_mem = bleach.clean(self.get_argument("min_memory", ""))
|
|
||||||
max_mem = bleach.clean(self.get_argument("max_memory", ""))
|
|
||||||
port = bleach.clean(self.get_argument("port", ""))
|
|
||||||
if int(port) < 1 or int(port) > 65535:
|
|
||||||
self.redirect(
|
|
||||||
"/panel/error?error=Constraint Error: "
|
|
||||||
"Port must be greater than 0 and less than 65535"
|
|
||||||
)
|
|
||||||
return
|
|
||||||
captured_roles = []
|
captured_roles = []
|
||||||
for role in user_roles:
|
for role in user_roles:
|
||||||
if bleach.clean(self.get_argument(str(role), "")) == "on":
|
if bleach.clean(self.get_argument(str(role), "")) == "on":
|
||||||
|
Loading…
Reference in New Issue
Block a user