Tweaked secure connection detection
Bump version to 0.2.4