fix error trying to use in proxy mode
change to check if string
Merge pull request #27 from kurtharriger/FixProxyMode

fix error trying to use in proxy mode