diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-10 11:34:55 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-10 11:34:55 -0800 |
commit | c19a252008d2e198b346229d0f54f31115132d7d (patch) | |
tree | ab941b59df4284d47c726f7fc81a04fe759796ba /system/addon/addon.go | |
parent | 03649f39d21971db323ae95bd956eed2a229a4b7 (diff) |
fix for slice len issue adding extra chars to addon id
Diffstat (limited to 'system/addon/addon.go')
-rw-r--r-- | system/addon/addon.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/addon/addon.go b/system/addon/addon.go index 5f9778e..22e2114 100644 --- a/system/addon/addon.go +++ b/system/addon/addon.go @@ -187,7 +187,7 @@ func reverseDNS(meta Meta) (string, error) { // reverse the host name parts, split on '.', ex. bosssauce.it => it.bosssauce parts := strings.Split(u.Host, ".") - strap := make([]string, len(parts), len(parts)) + strap := make([]string, 0, len(parts)) for i := len(parts) - 1; i >= 0; i-- { strap = append(strap, parts[i]) } |