Commit 80cdd0e2 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Moved to using the computing host instead of the agent-reported IP address for...

Moved to using the computing host instead of the agent-reported IP address for standalone computing resources.
parent c7f72c7e
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -310,6 +310,9 @@ print(port)

        elif action=='set_ip_port':

            if task.computing.type == 'standalone':
                _, task_interface_ip, _, _ = get_ssh_access_mode_credentials(task.computing, task.user)
            else:
                task_interface_ip   = request.GET.get('ip', None)
                if not task_interface_ip:
                    return HttpResponse('IP not valid (got "{}")'.format(task_interface_ip))