Skip to content

http.addr does not appear to be working the same in v1.3.x #2052

@kaladinlight

Description

@kaladinlight

System information

Geth
Version: 1.3.5
Git Commit: fe928d4778b3c7f86a43e06cfbbfdf06e80b8173
Git Commit Date: 20231208
Architecture: amd64
Go Version: go1.20.11
Operating System: linux

Expected behaviour

Geth
Version: 1.2.15
Git Commit: bfe000bd5d2f7473e8e591c3daf4b5247f62e36d
Git Commit Date: 20231204
Architecture: amd64
Go Version: go1.19.13
Operating System: linux

geth --config config.toml --datadir /data --http --http.addr 0.0.0.0 --http.port 8545 --http.api eth,net,web3,debug,txpool,parlia --http.vhosts '*' --http.corsdomain '*' --ws --ws.addr 0.0.0.0 --ws.port 8546 --ws.api eth,net,web3,debug,txpool,parlia --ws.origins '*' --syncmode full --maxpeers 200 --rpc.allow-unprotected-txs --txpool.pricelimit 1 --txlookuplimit 0 --cache 8000 --nat none

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 :::8545                 :::*                    LISTEN      13/geth
tcp        0      0 :::8546                 :::*                    LISTEN      13/geth
tcp        0      0 :::30311                :::*                    LISTEN      13/geth

Actual behaviour

Geth
Version: 1.3.5
Git Commit: fe928d4778b3c7f86a43e06cfbbfdf06e80b8173
Git Commit Date: 20231208
Architecture: amd64
Go Version: go1.20.11
Operating System: linux

geth --config config.toml --datadir /data --http --http.addr 0.0.0.0 --http.port 8545 --http.api eth,net,web3,debug,txpool,parlia --http.vhosts '*' --http.corsdomain '*' --ws --ws.addr 0.0.0.0 --ws.port 8546 --ws.api eth,net,web3,debug,txpool,parlia --ws.origins '*' --syncmode full --maxpeers 200 --rpc.allow-unprotected-txs --txpool.pricelimit 1 --history.transactions 0 --cache 8000 --nat none

Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 127.0.0.1:8545          0.0.0.0:*               LISTEN      12/geth
tcp        0      0 :::8546                 :::*                    LISTEN      12/geth
tcp        0      0 :::30311                :::*                    LISTEN      12/geth

Steps to reproduce the behaviour

Run geth with --http.addr 0.0.0.0 and note :8545 running on 127.0.0.1 instead of 0.0.0.0 preventing outside communication. Note :8546 is still configured and running as expected.

Backtrace

INFO [12-08|21:07:01.923] Starting Geth on Ethereum mainnet... 
INFO [12-08|21:07:01.925] Maximum peer count                       ETH=200 LES=0 total=200
INFO [12-08|21:07:01.927] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
INFO [12-08|21:07:13.536] Using leveldb as the backing database 
INFO [12-08|21:07:13.536] Allocated cache and file handles         database=/data/geth/chaindata cache=3.12GiB handles=524,288 readonly=true
INFO [12-08|21:07:21.232] Using LevelDB as the backing database 
INFO [12-08|21:07:21.312] Found legacy ancient chain path          location=/data/geth/chaindata/ancient
INFO [12-08|21:07:21.390] Opened ancient database                  database=/data/geth/chaindata/ancient readonly=true frozen=34,094,935
INFO [12-08|21:07:21.427] State scheme set to already existing     scheme=hash
INFO [12-08|21:07:21.429] Set global gas cap                       cap=50,000,000
INFO [12-08|21:07:21.429] Initializing the KZG library             backend=gokzg
INFO [12-08|21:07:21.446] Allocated trie memory caches             clean=2.73GiB dirty=1.95GiB
INFO [12-08|21:07:22.964] Using leveldb as the backing database 
INFO [12-08|21:07:22.964] Allocated cache and file handles         database=/data/geth/chaindata         cache=3.12GiB handles=524,288
INFO [12-08|21:07:34.405] Using LevelDB as the backing database 
INFO [12-08|21:07:34.417] Found legacy ancient chain path          location=/data/geth/chaindata/ancient
INFO [12-08|21:07:34.419] Opened ancient database                  database=/data/geth/chaindata/ancient readonly=false frozen=34,094,935
INFO [12-08|21:07:49.666] Unprotected transactions allowed 
INFO [12-08|21:07:49.677] Initialising Ethereum protocol           network=56 dbversion=8
INFO [12-08|21:07:49.679] Initialised chain configuration          config="{ChainID: 56 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: 0 EIP155: 0 EIP158: 0 Byzantium: 0 Constantinople: 0 Petersburg: 0 Istanbul: 0, Muir Glacier: 0, Ramanujan: 0, Niels: 0, MirrorSync: 5184000, Bruno: 13082000, Berlin: 31302048, YOLO v3: <nil>, CatalystBlock: <nil>, London: 31302048, ArrowGlacier: <nil>, MergeFork:<nil>, Euler: 18907621, Gibbs: 23846001, Nano: 21962149, Moran: 22107423, Planck: 27281024,Luban: 29020050, Plato: 30720096, Hertz: 31302048, Hertzfix: 34140700, ShanghaiTime: 1705996800, KeplerTime: 1705996800, Engine: parlia}"
INFO [12-08|21:07:49.820] Loaded most recent local block           number=34,184,936 hash=072895..b31f54 root=ee57f0..9230e8 td=67,917,953 age=1m9s
INFO [12-08|21:07:49.820] Loaded most recent local finalized block number=34,184,934 hash=c7ad8d..c12d38 root=587771..163d2a td=67,917,949 age=1m15s
INFO [12-08|21:07:49.830] Loaded last snap-sync pivot marker       number=6,920,578
WARN [12-08|21:07:49.874] Sanitizing invalid txpool lifetime       provided=0s updated=3h0m0s
WARN [12-08|21:07:49.874] Sanitizing invalid txpool reannounce time provided=0s updated=1m0s
INFO [12-08|21:07:49.874] Initialized transaction indexer          limit=0
INFO [12-08|21:07:49.875] Create votePool successfully 
WARN [12-08|21:07:49.875] Sanitizing invalid gasprice oracle price cap provided=<nil> updated=100,000,000,000
WARN [12-08|21:07:49.875] Sanitizing invalid gasprice oracle ignore price provided=<nil> updated=4
WARN [12-08|21:07:49.875] Sanitizing invalid gasprice oracle max header history provided=0     updated=1
WARN [12-08|21:07:49.875] Sanitizing invalid gasprice oracle max block history provided=0     updated=1
WARN [12-08|21:07:49.876] Old unclean shutdowns found              count=451
INFO [12-08|21:07:49.876] Starting peer-to-peer node               instance=Geth/v1.3.5-fe928d47-20231208/linux-amd64/go1.20.11
INFO [12-08|21:07:49.968] New local node record                    seq=1,687,257,609,844 id=c21d936dd39b0d7f ip=127.0.0.1 udp=30311 tcp=30311
INFO [12-08|21:07:49.969] Started P2P networking                   self=enode://28e2053f53bbc0962807b54038e01ea2df6a8d1ee12e63f930d54cad2f8892f2574facaf74b6c8d7f726573c7f1e0a3b4b144ad15a7ad2cf890d5a1677f9b6fc@127.0.0.1:30311
INFO [12-08|21:07:49.970] IPC endpoint opened                      url=/data/geth.ipc
INFO [12-08|21:07:49.971] HTTP server started                      endpoint=127.0.0.1:8545 auth=false prefix= cors=* vhosts=*
INFO [12-08|21:07:49.971] WebSocket enabled                        url=ws://[::]:8546
INFO [12-08|21:07:50.279] Block synchronisation started

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions