Skip to content

Commit

Permalink
Store default timeout as string (see #15)
Browse files Browse the repository at this point in the history
  • Loading branch information
sleeyax committed Aug 13, 2022
1 parent 81cb18a commit ca24515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/burp/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class Settings {
private final String tlsFingerprintFilePath = "TlsFingerprintFilePath";

public static final String DEFAULT_ADDRESS = "127.0.0.1:8887";
public static final int DEFAULT_TIMEOUT = 10;
public static final String DEFAULT_TIMEOUT = "10";
public static final String DEFAULT_TLS_FINGERPRINT = "Default";

public Settings(IBurpExtenderCallbacks callbacks) {
Expand All @@ -21,7 +21,7 @@ private void setDefaults() {
this.write(this.address, DEFAULT_ADDRESS);

if (this.read(this.timeout) == null)
this.write(this.timeout, String.valueOf(DEFAULT_TIMEOUT));
this.write(this.timeout, DEFAULT_TIMEOUT);

if (this.read(this.tlsFingerprint) == null)
this.write(this.tlsFingerprint, DEFAULT_TLS_FINGERPRINT);
Expand Down

0 comments on commit ca24515

Please sign in to comment.