diff --git a/lib/method.dart b/lib/method.dart index 4c92060c6421afdaca129b378391aacb34542895..966f3ea1b446911f51cff88920b22494516313b0 100644 --- a/lib/method.dart +++ b/lib/method.dart @@ -24,10 +24,10 @@ class Method { String getCommand() { String best = ''; - print("SRC: ${src.location.host} -> DST: ${dst.location.host}"); + print("SRC: ${src.getFqdn()} -> DST: ${dst.getFqdn()}"); best = selectCommand( - src.location.host != null && src.location.host == dst.location.host && src.isScpRemote(), - "ssh ${dst.getAsSsh()} 'cp ${opt.getAsCp()} ${src.getScpPath()} ${dst.getScpPath()}'", + src.getFqdn() == dst.getFqdn() && src.isScpRemote(), + "ssh ${src.getAsSsh()} 'cp ${opt.getAsCp()} ${src.getScpPath()} ${dst.getScpPath()}'", best); best = selectCommand(