+ {(() => {
+ try {
+ const url = new URL(form.watch("endpoint_url"));
+ return (
+ <>
+
+ Hostname: {url.hostname}
+
+
+ Port:{" "}
+ {url.port || (url.protocol === "https:" ? "443" : "80")}
+
+
+ SSL/TLS:{" "}
+ {url.protocol === "https:" ? "Enabled" : "Disabled"}
+
+ >
+ );
+ } catch {
+ return
Invalid URL format
;
+ }
+ })()}
+