Don't use pure number as host name.

Numbers would be treated as IP addresses.
This commit is contained in:
Cheng Zhao 2014-08-27 20:49:57 +08:00
parent b80f109524
commit fe96a9de33

View file

@ -8,7 +8,7 @@ hostPathMap = {}
hostPathMapNextKey = 0
getHostForPath = (path) ->
key = "#{++hostPathMapNextKey}"
key = "extension-#{hostPathMapNextKey}"
hostPathMap[key] = path
key