feat(microservices): manage code queue through v3s
This commit is contained in:
@@ -306,7 +306,7 @@ function restrictedHostAccessScript(config: UniDeskConfig): string {
|
||||
` || iptables -I DOCKER-USER 1 -s ${shellQuote(source)} -p tcp --dport ${port.containerPort} -j ACCEPT`,
|
||||
].join(" \\\n")),
|
||||
[
|
||||
`iptables -C DOCKER-USER -p tcp --dport ${port.containerPort} -j DROP 2>/dev/null`,
|
||||
`iptables -C DOCKER-USER -p tcp --dport ${port.containerPort} -j DROP 2>/dev/null \\`,
|
||||
" || {",
|
||||
" return_line=$(iptables -L DOCKER-USER --line-numbers | awk '$2==\"RETURN\" {print $1; exit}')",
|
||||
" if [ -n \"$return_line\" ]; then",
|
||||
|
||||
Reference in New Issue
Block a user