Domain joined

fixed the bug and tested when no internet was available and when no corpnet was available, but internet was working.
Flip your logic by setting returnValue to false by default and set it to true only if condition is met. Also, replace the if/else statement with a single assignment statement: returnValue = (... && ...);