handle local / dev domains correctly
Merge pull request #1 from segmentio/v1

handle local / dev domains correctly