...
[gofetch.git] / src / be / nikiroo / gofetch / Fetcher.java
index 15c56af748f5c9b4d5ff6adb1c4474de94f2e30e..7490037c201929aba38297d809e7f9c917af1e95 100644 (file)
@@ -229,8 +229,8 @@ public class Fetcher {
 
        private String getLink(String name, String ref, boolean index, boolean html) {
                if (!html) {
-                       return new StringBuilder().append((index ? "0" : "1") + name)
-                                       .append("\t").append("1" + ref) //
+                       return new StringBuilder().append("1" + name).append("\t")
+                                       .append((index ? "1" : "0") + ref) //
                                        .append("\t").append(hostname) //
                                        .append("\t").append(Integer.toString(port)) //
                                        .append("\r\n").toString();