| 944 | } |
| 945 | |
| 946 | std::optional<Transfer::TransferTarget> Transfer::parseTarget(const std::string& ipPort) |
| 947 | { |
| 948 | auto hp = TransferProto::parseTarget(ipPort); |
| 949 | if (!hp) { |
| 950 | return std::nullopt; |
| 951 | } |
| 952 | return TransferTarget{std::move(hp->ip), hp->port}; |
| 953 | } |
| 954 | |
| 955 | bool Transfer::validPin(const std::string& pin) |
| 956 | { |
nothing calls this directly
no test coverage detected