1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 03:08:14 +00:00

Bump version to 1.0-alpha2.

This commit is contained in:
grossmj 2014-04-16 12:43:59 -06:00
parent 732afb4ebd
commit ada36e5382
3 changed files with 11 additions and 10 deletions

View File

@ -72,10 +72,11 @@ class FileUploadHandler(tornado.web.RequestHandler):
Invoked on POST request.
"""
fileinfo = self.request.files["file"][0]
destination_path = os.path.join(self._upload_dir, fileinfo['filename'])
with open(destination_path, 'wb') as f:
f.write(fileinfo['body'])
st = os.stat(destination_path)
os.chmod(destination_path, st.st_mode | stat.S_IXUSR)
if "file" in self.request.files:
fileinfo = self.request.files["file"][0]
destination_path = os.path.join(self._upload_dir, fileinfo['filename'])
with open(destination_path, 'wb') as f:
f.write(fileinfo['body'])
st = os.stat(destination_path)
os.chmod(destination_path, st.st_mode | stat.S_IXUSR)
self.redirect("/upload")

View File

@ -276,8 +276,8 @@ class Hypervisor(DynamipsHypervisor):
command = [self._path]
command.extend(["-N1"]) # use instance IDs for filenames
if self._host != '0.0.0.0':
command.extend(['-H', self._host + ':' + str(self._port)])
if self._host != "0.0.0.0" and self._host != "::":
command.extend(["-H", self._host + ":" + str(self._port)])
else:
command.extend(['-H', str(self._port)])
command.extend(["-H", str(self._port)])
return command

View File

@ -23,5 +23,5 @@
# or negative for a release candidate or beta (after the base version
# number has been incremented)
__version__ = "1.0a2.dev3"
__version__ = "1.0-alpha2"
__version_info__ = (1, 0, 0, -99)