Define restic server tls domain name when using IP

I am going through documents and it seems that when using restic server as a repository, you can define a https host.

However I have 2 machines in the local network, one running restic server, and the other running restic. I want to use IP as endpoint to access the rest server, but the server does have a valid tls cert, in this case, is it possible to define the hostname to check cert against?

Thank you!