Any way to detect domain ? #114
Replies: 7 comments
-
Sadly, that is not sent to FTP server, so there is no way to find it out :( |
Beta Was this translation helpful? Give feedback.
-
yeah i think ftp over tls is also not possible if the server is hosting multiple sites.. |
Beta Was this translation helpful? Give feedback.
-
Looks like you've resolved this? |
Beta Was this translation helpful? Give feedback.
-
no. I thought it was not part of the FTP protocol, but it looks like there's a HOST command in the standard https://tools.ietf.org/html/rfc7151 Could you add support for it in ftp-srv ? |
Beta Was this translation helpful? Give feedback.
-
I've created a draft PR (#169) for RFC 7151. Some meta things like tests and CLI are missing yet and it is not fully RFC compliant as it does not check for valid hostname syntax and also does not check whether the IP address is ours. I think it the PR could be merged even without that full compilance thing, I plan to implement them later when I have more time. |
Beta Was this translation helpful? Give feedback.
-
By the way, TLS already exchanges domain name, so this |
Beta Was this translation helpful? Give feedback.
-
TLS does handle domain. However without being able to pass more than the TLS context object you aren’t able to set the correct TLS context object for each domain. |
Beta Was this translation helpful? Give feedback.
-
If someone logs in using the domain name, like
mysite.com:21
, is there a way to find that out within the server ?I noticed there's a
domain
property in the data object passed in the login event, but it's always null.Beta Was this translation helpful? Give feedback.
All reactions