You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gugupy
changed the title
socket.getfqdn() return hostname with leading . (dot) in WSL
socket.getfqdn() return hostname with trailing . (dot) in WSL
Jan 8, 2024
Bug report
Bug description:
I faced this problem when I was working on
smtplib.SMTP
whereehlo
falied with invalid domain name.While debug the problem found WSL default adding the host entry in
/etc/hosts
as below,FQDN
So
self.local_hostname
set togugupy.
which actually lead to the problem.CPython versions tested on:
3.11
Operating systems tested on:
Linux, Other
The text was updated successfully, but these errors were encountered: