| 932 | } |
| 933 | |
| 934 | std::optional<Transfer::TransferTarget> Transfer::parseTarget(const std::string& ipPort) |
| 935 | { |
| 936 | auto hp = TransferProto::parseTarget(ipPort); |
| 937 | if (!hp) { |
| 938 | return std::nullopt; |
| 939 | } |
| 940 | return TransferTarget{std::move(hp->ip), hp->port}; |
| 941 | } |
| 942 | |
| 943 | bool Transfer::validPin(const std::string& pin) |
| 944 | { |
nothing calls this directly
no test coverage detected