Revision aea3e7c6 api/actions.py

b/api/actions.py
2 2
# Copyright (c) 2010 Greek Research and Technology Network
3 3
#
4 4

  
5
from socket import getfqdn
6

  
5 7
from django.conf import settings
6 8
from django.http import HttpResponse
7 9
from django.template.loader import render_to_string
......
74 76
    passwd = random_password()
75 77

  
76 78
    request_vnc_forwarding(sport, daddr, dport, passwd)
77
    vnc = { 'host': '62.217.120.67', 'port': sport, 'password': passwd }
79
    vnc = { 'host': socket.getfqdn(), 'port': sport, 'password': passwd }
78 80

  
79 81
    # Format to be reviewed by [verigak], FIXME
80 82
    if request.serialization == 'xml':

Also available in: Unified diff