only set endpoints on windows
Merge pull request #103 from gkorland/master

only set endpoints on windows