mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
bitkeeper revision 1.1159.1.40 (411b35dbH9xNYJhiWeq5taj0xdMP2w)
Stop libcurl using http_proxy.
This commit is contained in:
1 parent
fbb7c1f214
commit
0a0bb99cf4
2 files changed
+14
-2
No files matched your search
@@ -389,8 +389,8 @@ class XendMigrate:
|
||||
|
||||
def session_begin(self, info):
|
||||
self._add_session(info.xid, info)
|
||||
mcf = XfrdClientFactory(info)
|
||||
reactor.connectTCP('localhost', XFRD_PORT, mcf)
|
||||
xcf = XfrdClientFactory(info)
|
||||
reactor.connectTCP('localhost', XFRD_PORT, xcf)
|
||||
return info
|
||||
|
||||
def migrate_begin(self, dom, host, port=XFRD_PORT):
|
||||
@@ -401,6 +401,8 @@ class XendMigrate:
|
||||
@param port: destination port
|
||||
@return: deferred
|
||||
"""
|
||||
if host in ['localhost', '127.0.0.1']:
|
||||
raise XendError('cannot migrate to localhost')
|
||||
# Check dom for existence, not migrating already.
|
||||
# Subscribe to migrate notifications (for updating).
|
||||
xid = self.nextid()
|
||||
|
||||