Fix logic for supported socket platforms