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