c9bb9d6a by xuewuhen

SubDomains function bugfixed

1 parent cec151fd
...@@ -194,7 +194,7 @@ func (input *BeegoInput) Refer() string { ...@@ -194,7 +194,7 @@ func (input *BeegoInput) Refer() string {
194 // if aa.bb.domain.com, returns aa.bb . 194 // if aa.bb.domain.com, returns aa.bb .
195 func (input *BeegoInput) SubDomains() string { 195 func (input *BeegoInput) SubDomains() string {
196 parts := strings.Split(input.Host(), ".") 196 parts := strings.Split(input.Host(), ".")
197 return strings.Join(parts[len(parts)-2:], ".") 197 return strings.Join(parts[:len(parts)-2], ".")
198 } 198 }
199 199
200 // Port returns request client port. 200 // Port returns request client port.
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!