Skip to content

Commit

Permalink
Add localhost.test as valid host name for jobber ngrok tunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
Cody Moorhouse committed Jan 27, 2023
1 parent c2bf7dd commit 7db360a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/ngrok/tunnel.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ class NotFound < StandardError; end
class FetchUrlError < StandardError; end
class Error < StandardError; end


ALLOW_HOSTS = [
"localhost.test"
].freeze

class Tunnel

class << self
Expand Down Expand Up @@ -131,9 +136,10 @@ def pre_v3?
def create_empty_config_file
tmp = Tempfile.new('ngrok_config-')
tmp << "version: ""2""\n"
tmp << "web_allow_hosts:\n"
ALLOW_HOSTS.each {|host| tmp << " - #{host}\n"}
tmp.flush
tmp.close

tmp
end
end
Expand Down

0 comments on commit 7db360a

Please sign in to comment.