| 902 | } |
| 903 | |
| 904 | std::optional<Transfer::TransferTarget> Transfer::parseTarget(const std::string& ipPort) |
| 905 | { |
| 906 | auto hp = TransferProto::parseTarget(ipPort); |
| 907 | if (!hp) { |
| 908 | return std::nullopt; |
| 909 | } |
| 910 | return TransferTarget{std::move(hp->ip), hp->port}; |
| 911 | } |
| 912 | |
| 913 | bool Transfer::validPin(const std::string& pin) |
| 914 | { |
nothing calls this directly
no test coverage detected