SubDomains function bugfixed
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -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. | ... | ... |
-
Please register or sign in to post a comment