logger: fix the array loop
tls/socket fixes; should work now