CodeSOD: A Proper Mode of Address
The Daily WTF
AUGUST 11, 2021
Those methods should behave more-or-less the same on both Windows and Linux, so checking the IP address should be a simple and short function. We set os_type = 'windows' , then check the platform. The entire 'windows' branch of the if isn't needed. What if we want to check the IP on Linux?
Let's personalize your content