| 912 | } |
| 913 | |
| 914 | std::optional<Transfer::TransferTarget> Transfer::parseTarget(const std::string& ipPort) |
| 915 | { |
| 916 | auto hp = TransferProto::parseTarget(ipPort); |
| 917 | if (!hp) { |
| 918 | return std::nullopt; |
| 919 | } |
| 920 | return TransferTarget{std::move(hp->ip), hp->port}; |
| 921 | } |
| 922 | |
| 923 | bool Transfer::validPin(const std::string& pin) |
| 924 | { |
nothing calls this directly
no test coverage detected