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