瀏覽代碼

Fix nil error when no DNS addresses are found for host (#9379)

master
Eugen Rochko 5 年之前
committed by GitHub
父節點
當前提交
43c311b3a1
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      app/lib/request.rb

+ 5
- 1
app/lib/request.rb 查看文件

@@ -163,7 +163,11 @@ class Request
end
end

raise outer_e if outer_e
if outer_e
raise outer_e
else
raise SocketError, "No address for #{host}"
end
end

alias new open


Loading…
取消
儲存