port
Configure a TorOption.HiddenServicePort with no "target". In this event, the "target" will be the same as virtual.
e.g.
port(virtual = Port.HTTP)
// HiddenServicePort 80 80
Content copied to clipboard
See also
documentation.
Configure a TorOption.HiddenServicePort with a specified virtual port and configure other options.
e.g.
port(virtual = Port.HTTP) {
target(port = 8080.toPort())
}
// HiddenServicePort 80 8080
Content copied to clipboard
See also
documentation.